Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.59MB] [CPU: ▼15.76ms] Passed 4 tests
Analyzing server-side resources used by Legitimate Post Submitter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 38.45 ▼3.46 |
Dashboard /wp-admin | 3.40 ▲0.09 | 46.99 ▼1.57 |
Posts /wp-admin/edit.php | 3.54 ▲0.17 | 54.43 ▲6.49 |
Add New Post /wp-admin/post-new.php | 3.28 ▼2.62 | 35.67 ▼62.23 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.47 ▲4.22 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Legitimate Post Submitter
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.39 ▲0.02 | 1.82 ▲0.24 | 41.20 ▲4.43 |
Dashboard /wp-admin | 2,195 ▲17 | 5.60 ▼0.09 | 81.41 ▼18.54 | 39.32 ▼3.58 |
Posts /wp-admin/edit.php | 2,270 ▲170 | 3.46 ▲1.47 | 84.21 ▲45.96 | 35.28 ▼0.22 |
Add New Post /wp-admin/post-new.php | 6,389 ▲4,861 | 26.15 ▲2.97 | 876.01 ▲198.34 | 47.94 ▼20.26 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.21 ▲0.03 | 79.89 ▼14.83 | 41.18 ▼3.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/legitimate-post-submitter/legitimate.php
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant LEGITIMATE_AUTHOR_URL - assumed 'LEGITIMATE_AUTHOR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legitimate-post-submitter/views/backend/user/profile-fields.php on line 7
- > PHP Warning
Use of undefined constant Legitimate_PLUGIN_DIR_URL - assumed 'Legitimate_PLUGIN_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legitimate-post-submitter/src/constants.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/legitimate-post-submitter/views/backend/post/metabox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/legitimate-post-submitter/views/backend/user/profile-fields.php:7
- > PHP Warning
Use of undefined constant Legitimate_PLUGIN_DIR_URL - assumed 'Legitimate_PLUGIN_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legitimate-post-submitter/src/constants.php on line 14
- > PHP Warning
Use of undefined constant Legitimate_PLUGIN_DIR_PATH - assumed 'Legitimate_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/legitimate-post-submitter/src/constants.php on line 11
- > PHP Warning
Use of undefined constant Legitimate_PLUGIN_DIR_PATH - assumed 'Legitimate_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/legitimate-post-submitter/src/constants.php on line 12
- > PHP Warning
Use of undefined constant Legitimate_PLUGIN_DIR_URL - assumed 'Legitimate_PLUGIN_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legitimate-post-submitter/src/constants.php on line 15
- > PHP Warning
Use of undefined constant Legitimate_PLUGIN_DIR_PATH - assumed 'Legitimate_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/legitimate-post-submitter/src/constants.php on line 12
- > PHP Warning
Use of undefined constant Legitimate_PLUGIN_DIR_URL - assumed 'Legitimate_PLUGIN_DIR_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/legitimate-post-submitter/src/constants.php on line 15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: fake news, misinformation, content, marketing, content sharing
legitimate-post-submitter/legitimate.php 92% from 13 tests
The principal PHP file in "Legitimate Post Submitter" v. 1.0.4 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("legitimate-post-submitter.php" instead of "legitimate.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin802 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 125 | 170 | 689 |
JavaScript | 1 | 4 | 3 | 67 |
CSS | 1 | 0 | 0 | 26 |
JSON | 1 | 0 | 0 | 20 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 8.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 3 | 7.69% |
▷ Public methods | 38 | 97.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.56% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 17 | |
▷ Global constants | 16 | 94.12% |
▷ Class constants | 1 | 5.88% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin