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
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼5.87ms] Passed 4 tests
An overview of server-side resources used by Limit Revision Publishing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 38.52 ▼5.05 |
Dashboard /wp-admin | 3.48 ▲0.18 | 51.79 ▼0.77 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 49.01 ▲1.02 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 87.04 ▼18.66 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 41.91 ▲5.97 |
Limit Revision Publishing /wp-admin/options-general.php?page=limit-revision-publishing | 3.41 | 36.23 |
Server storage [IO: ▲2.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 98 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Limit Revision Publishing: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 13.24 ▼1.42 | 2.32 ▲0.03 | 45.09 ▲1.99 |
Dashboard /wp-admin | 2,213 ▲28 | 4.87 ▼0.05 | 100.43 ▼11.82 | 39.26 ▼5.02 |
Posts /wp-admin/edit.php | 2,141 ▲49 | 2.01 ▲0.05 | 39.00 ▲0.27 | 38.55 ▲2.44 |
Add New Post /wp-admin/post-new.php | 1,517 ▼2 | 17.76 ▼5.37 | 693.22 ▼15.06 | 69.49 ▼8.61 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.12 ▼0.08 | 115.88 ▼25.99 | 48.46 ▼5.14 |
Limit Revision Publishing /wp-admin/options-general.php?page=limit-revision-publishing | 1,739 | 6.02 | 146.66 | 71.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/limit-revision-publishing/lib/class-lrp-controller.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: limit, capability, revision, permissions, workflow...
limit-revision-publishing/plugin.php 92% from 13 tests
"Limit Revision Publishing" version 1.1.10's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("limit-revision-publishing.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected11,371 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 67 | 2,591 | 798 | 9,810 |
PHP | 7 | 168 | 259 | 809 |
CSS | 3 | 62 | 0 | 457 |
Markdown | 3 | 70 | 0 | 166 |
YAML | 5 | 6 | 6 | 129 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.67 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 1.73MB with 0.95MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot-3.png | 364.66KB | 168.50KB | ▼ 53.79% |
images/screenshot-4.png | 234.70KB | 104.21KB | ▼ 55.60% |
images/screenshot-2.png | 238.82KB | 105.89KB | ▼ 55.66% |
images/screenshot-5.png | 254.89KB | 113.50KB | ▼ 55.47% |
images/screenshot-7.png | 211.94KB | 96.72KB | ▼ 54.36% |