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
This plugin's installer ran successfully
Server metrics [RAM: ▼0.29MB] [CPU: ▼15.38ms] Passed 4 tests
An overview of server-side resources used by Post Revision
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.57 ▼1.40 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.16 ▼4.10 |
Posts /wp-admin/edit.php | 3.40 ▲0.03 | 52.23 ▼3.36 |
Add New Post /wp-admin/post-new.php | 4.64 ▼1.26 | 45.40 ▼49.94 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 34.11 ▼4.11 |
Post Revision /wp-admin/options-general.php?page=post-revision/post-revision-menu.php | 3.24 | 36.23 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options |
---|
buffercode_post_revision_order |
buffercode_post_revision_bg_color |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
buffercode_post_revision_custom_heading |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Post Revision
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.26 ▼0.09 | 1.78 ▼0.10 | 43.48 ▼2.95 |
Dashboard /wp-admin | 2,204 ▲27 | 5.67 ▼0.00 | 88.01 ▼6.99 | 38.88 ▼3.01 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.00 ▲0.02 | 38.32 ▲2.18 | 34.47 ▼2.62 |
Add New Post /wp-admin/post-new.php | 6,233 ▲4,707 | 25.69 ▲2.17 | 903.25 ▲272.38 | 58.60 ▼0.57 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.17 ▼0.02 | 100.75 ▼0.84 | 41.44 ▼5.14 |
Post Revision /wp-admin/options-general.php?page=post-revision/post-revision-menu.php | 867 | 1.96 | 27.13 | 26.39 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 9 options
- buffercode_post_revision_custom_heading
- buffercode_post_revision_order
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- buffercode_post_revision_bg_color
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Last update reason option), #2 (Setting page for Post Revision), #3 (Ouput for the post revision)
post-revision/post-revision.php Passed 13 tests
"Post Revision" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
109 characters long description:
Through this plugin, user can able to show the post revision done on the each post with latest update reason.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin958 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 138 | 37 | 822 |
PHP | 2 | 46 | 34 | 136 |
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.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/hv.png | 2.80KB | 7.32KB | 0.00% |
screenshot-1.png | 6.95KB | 2.99KB | ▼ 56.97% |
screenshot-2.png | 23.01KB | 8.48KB | ▼ 63.13% |
screenshot-3.PNG | 25.45KB | 10.72KB | ▼ 57.88% |
js/hs.png | 2.62KB | 7.54KB | 0.00% |