Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.80ms] Passed 4 tests
This is a short check of server-side resources used by Page/Post Revisions Manager and Public Preview
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 41.20 ▲2.60 |
Dashboard /wp-admin | 3.33 ▲0.02 | 50.58 ▼2.32 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.35 ▼5.04 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 88.09 ▼10.42 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 42.70 ▲3.49 |
Help /wp-admin/admin.php?page=mo_revision_help | 3.24 | 34.15 |
Dashboard /wp-admin/admin.php?page=mo_revision_manager | 3.19 | 29.49 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 37 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mor_data |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Page/Post Revisions Manager and Public Preview
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲176 | 13.84 ▼0.54 | 5.82 ▲3.74 | 43.73 ▼0.02 |
Dashboard /wp-admin | 2,230 ▲42 | 5.43 ▼0.46 | 120.11 ▲7.34 | 79.29 ▲36.37 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.38 ▲0.36 | 45.14 ▲2.64 | 36.29 ▼4.11 |
Add New Post /wp-admin/post-new.php | 1,702 ▲160 | 22.47 ▲4.07 | 731.47 ▲113.43 | 36.96 ▼15.68 |
Media Library /wp-admin/upload.php | 1,424 ▲33 | 4.50 ▲0.30 | 113.44 ▲14.75 | 65.71 ▲24.13 |
Help /wp-admin/admin.php?page=mo_revision_help | 885 | 1.89 | 35.32 | 34.65 |
Dashboard /wp-admin/admin.php?page=mo_revision_manager | 990 | 2.59 | 55.53 | 41.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=mo_revision_manager
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
SRP 0% 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
Please fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/page-post-revisions-and-public-preview/admin/partials/mo-revisions-help.php
- > /wp-content/plugins/page-post-revisions-and-public-preview/admin/partials/mo-revisions-admin-display.php
- > /wp-content/plugins/page-post-revisions-and-public-preview/public/partials/mo-revisions-public-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: post_result in wp-content/plugins/page-post-revisions-and-public-preview/admin/partials/mo-revisions-admin-display.php on line 33
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/page-post-revisions-and-public-preview/admin/partials/mo-revisions-admin-show-diff.php:10
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/page-post-revisions-and-public-preview/admin/partials/mo-revisions-admin-display.php on line 33
- > PHP Notice
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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
page-post-revisions-and-public-preview/mo-revisions.php 77% from 13 tests
The entry point to "Page/Post Revisions Manager and Public Preview" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("page-post-revisions-and-public-preview.php" instead of "mo-revisions.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
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 338 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,164 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 265 | 518 | 797 |
JavaScript | 4 | 20 | 11 | 221 |
CSS | 5 | 27 | 5 | 141 |
SVG | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 1.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 2 | 5.41% |
▷ Public methods | 30 | 81.08% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 18.92% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/miniorange_icon.png | 0.44KB | 0.35KB | ▼ 18.61% |