Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.83MB] [CPU: ▼171.50ms] Passed 4 tests
Server-side resources used by Limit Revisions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.13 | 39.79 ▲17.22 |
Dashboard /wp-admin | 2.83 ▼0.23 | 30.28 ▼18.02 |
Posts /wp-admin/edit.php | 2.83 ▼0.29 | 25.26 ▼22.98 |
Add New Post /wp-admin/post-new.php | 2.83 ▼2.61 | 27.52 ▼631.29 |
Media Library /wp-admin/upload.php | 2.83 ▼0.18 | 22.15 ▼13.69 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Limit Revisions
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.88 ▲0.28 | 6.46 ▼2.63 | 49.11 ▼5.38 |
Dashboard /wp-admin | 2,967 ▲33 | 6.08 ▲0.14 | 145.60 ▼15.57 | 111.73 ▲1.33 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 65.75 ▼3.24 | 94.34 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,604 ▲23 | 18.75 ▼1.66 | 383.54 ▲5.14 | 123.56 ▼5.34 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.05 ▼0.00 | 158.53 ▲1.84 | 131.34 ▲8.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/limit-revisions/limit-wordpress-revisions.php+28
Trying to access array offset on value of type bool
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 fix the following items
- 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-revisions/limit-wordpress-revisions.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: limit, revisions, content, revision
limit-revisions/limit-wordpress-revisions.php 85% from 13 tests
Analyzing the main PHP file in "Limit Revisions" version 1.0.0
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("limit-revisions.php" instead of "limit-wordpress-revisions.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
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 plugin112 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 12 | 12 | 71 |
PHP | 2 | 2 | 23 | 41 |
PHP code Passed 2 tests
An overview 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.16 |
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 | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.PNG | 4.82KB | 3.31KB | ▼ 31.35% |
assets/screenshot-1.PNG | 21.25KB | 10.86KB | ▼ 48.88% |