Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.04MB] [CPU: ▼7.50ms] Passed 4 tests
An overview of server-side resources used by WP Revised Status
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 43.86 ▼0.21 |
Dashboard /wp-admin | 3.44 ▲0.14 | 57.27 ▲2.50 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 56.38 ▲3.60 |
Add New Post /wp-admin/post-new.php | 5.33 ▼0.56 | 72.84 ▼32.42 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.57 ▲0.14 |
Published Status Revisions /wp-admin/options-general.php?page=revised_status_options | 3.33 | 35.55 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Revised Status
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▲0.07 | 1.68 ▼0.15 | 43.13 ▼3.46 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▲0.08 | 91.83 ▼2.94 | 39.15 ▼2.44 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.01 | 41.07 ▲4.78 | 37.50 ▲1.65 |
Add New Post /wp-admin/post-new.php | 6,229 ▲4,703 | 21.04 ▼2.09 | 818.29 ▲142.51 | 65.90 ▲9.12 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▲0.00 | 98.78 ▼5.30 | 42.56 ▼6.20 |
Published Status Revisions /wp-admin/options-general.php?page=revised_status_options | 1,078 | 2.65 | 50.35 | 42.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'revised_status_deactivate' not found or invalid function name
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Trait 'RevisedStatus\\Base' not found in wp-content/plugins/revised-publishing-status/src/RevisedStatus/Controller/RevisionManager.php on line 15
- > PHP Fatal error
Trait 'RevisedStatus\\Base' not found in wp-content/plugins/revised-publishing-status/src/RevisedStatus/View/Options.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/revised-publishing-status/init.php:24
- > PHP Fatal error
Trait 'RevisedStatus\\Base' not found in wp-content/plugins/revised-publishing-status/src/RevisedStatus/View/RevisionMetabox.php on line 15
- > PHP Fatal error
Trait 'RevisedStatus\\Base' not found in wp-content/plugins/revised-publishing-status/src/RevisedStatus/Controller/Options.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
2 plugin tags: revisions, publishing-status
revised-publishing-status/init.php 85% from 13 tests
Analyzing the main PHP file in "WP Revised Status" version 0.8.6
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("revised-publishing-status.php" instead of "init.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin688 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 169 | 262 | 470 |
PO File | 1 | 30 | 32 | 114 |
Markdown | 1 | 34 | 0 | 67 |
JSON | 2 | 0 | 0 | 37 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 17.40 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 4.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin