Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲1.20MB] [CPU: ▲12.93ms] Passed 4 tests
A check of server-side resources used by PublishPress Revisions: Duplicate Posts, Submit, Approve and Schedule Content Changes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.54 ▲1.08 | 50.60 ▲14.32 |
Dashboard /wp-admin | 4.58 ▲1.28 | 57.84 ▲9.24 |
Posts /wp-admin/edit.php | 4.68 ▲1.32 | 56.99 ▲10.20 |
Add New Post /wp-admin/post-new.php | 7.14 ▲1.25 | 109.73 ▲25.47 |
Media Library /wp-admin/upload.php | 4.43 ▲1.20 | 50.65 ▲17.97 |
Revision Queue /wp-admin/admin.php?page=revisionary-q | 4.92 | 52.93 |
Revision Archive /wp-admin/admin.php?page=revisionary-archive | 4.62 | 46.11 |
Settings /wp-admin/admin.php?page=revisionary-settings | 4.86 | 44.50 |
Upgrade to Pro /wp-admin/admin.php?page=revisionary-pro | 4.84 | 43.42 |
Server storage [IO: ▲1.72MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 149 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
revisionary_wp_reviews_installed_on |
widget_recent-posts |
rvy_scheduled_publish_cron |
theysaidso_admin_options |
can_compress_scripts |
revisionary_last_version |
widget_recent-comments |
widget_theysaidso_widget |
rvy_wp_cron_usage_detected |
Browser metrics Passed 4 tests
A check of browser resources used by PublishPress Revisions: Duplicate Posts, Submit, Approve and Schedule Content Changes
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,837 ▲76 | 14.38 ▲0.00 | 1.92 ▲0.21 | 34.00 ▼9.43 |
Dashboard /wp-admin | 2,234 ▲60 | 5.57 ▼0.00 | 85.02 ▼3.66 | 39.51 ▼5.56 |
Posts /wp-admin/edit.php | 2,146 ▲46 | 2.06 ▲0.12 | 36.17 ▲1.45 | 34.40 ▼4.08 |
Add New Post /wp-admin/post-new.php | 1,566 ▲31 | 23.27 ▲5.17 | 666.76 ▲23.96 | 54.19 ▼11.57 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.24 ▲0.02 | 96.00 ▼0.70 | 45.33 ▲1.82 |
Revision Queue /wp-admin/admin.php?page=revisionary-q | 1,137 | 1.75 | 28.32 | 40.20 |
Revision Archive /wp-admin/admin.php?page=revisionary-archive | 1,094 | 2.12 | 24.35 | 36.41 |
Settings /wp-admin/admin.php?page=revisionary-settings | 1,734 | 2.26 | 27.43 | 45.86 |
Upgrade to Pro /wp-admin/admin.php?page=revisionary-pro | 1,699 | 2.13 | 26.78 | 25.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 10 options in the database
- db_upgraded
- rvy_wp_cron_usage_detected
- rvy_scheduled_publish_cron
- revisionary_wp_reviews_installed_on
- revisionary_last_version
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/revisionary/lib/vendor/publishpress/wordpress-version-notices/templates/menu-link/menu-link-script.php
- > /wp-content/plugins/revisionary/lib/vendor/publishpress/wordpress-version-notices/templates/top-notice/notice.php
- 49× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'PublishPress\\WordpressVersionNotices\\Module\\AdInterface' not found in wp-content/plugins/revisionary/lib/vendor/publishpress/wordpress-version-notices/src/Module/TopNotice/Module.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/revisionary/admin/admin-init_rvy.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/revisionary/submittee_rvy.php:2
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/revisionary/admin/class-list-table-archive.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/revisionary/revisionary_main.php:2
- > PHP Warning
Class 'PublishPress\\WordpressVersionNotices\\Template\\TemplateInvalidArgumentsException' not found in wp-content/plugins/revisionary/lib/vendor/publishpress/wordpress-version-notices/src/deprecated.php on line 24
- > PHP Notice
Undefined variable: convertedUrlsMap in wp-content/plugins/revisionary/lib/vendor/publishpress/wordpress-version-notices/templates/menu-link/menu-link-script.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url_raw() in wp-content/plugins/revisionary/admin/edit-revision-classic-ui_rvy.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function rvy_get_manageable_types() in wp-content/plugins/revisionary/admin/revision-queue_rvy.php:8
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/revisionary/admin/class-list-table_rvy.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 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
7 plugin tags: submit changes, revisions, scheduled changes, approve changes, duplicate page...
revisionary/revisionary.php Passed 13 tests
The main file in "PublishPress Revisions: Duplicate Posts, Submit, Approve and Schedule Content Changes" v. 3.5.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
121 characters long description:
Maintain published content with teamwork and precision using the Revisions model to submit, approve and schedule changes.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin25,153 lines of code in 127 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 101 | 3,952 | 2,609 | 14,532 |
PO File | 7 | 3,107 | 4,545 | 7,934 |
JavaScript | 11 | 261 | 62 | 1,215 |
CSS | 4 | 203 | 53 | 1,000 |
JSON | 2 | 0 | 0 | 436 |
YAML | 1 | 0 | 0 | 25 |
XML | 1 | 3 | 1 | 11 |
PHP code 50% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 171)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.66 |
Average class complexity | 34.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 323.00 |
Average method complexity | 5.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 171.00 |
Code structure | ||
---|---|---|
Namespaces | 17 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 58 | |
▷ Abstract classes | 1 | 1.72% |
▷ Concrete classes | 57 | 98.28% |
▷ Final classes | 2 | 3.51% |
Methods | 434 | |
▷ Static methods | 59 | 13.59% |
▷ Public methods | 360 | 82.95% |
▷ Protected methods | 19 | 4.38% |
▷ Private methods | 55 | 12.67% |
Functions | 191 | |
▷ Named functions | 152 | 79.58% |
▷ Anonymous functions | 39 | 20.42% |
Constants | 34 | |
▷ Global constants | 28 | 82.35% |
▷ Class constants | 6 | 17.65% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
common/img/publishpress-logo-icon.png | 13.05KB | 4.10KB | ▼ 68.61% |
common/img/publishpress-logo.png | 8.69KB | 8.91KB | 0.00% |