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.02MB] [CPU: ▼4.88ms] Passed 4 tests
Analyzing server-side resources used by WP Rollback
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.50 ▼2.18 |
Dashboard /wp-admin | 3.33 ▲0.02 | 50.53 ▼10.25 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.74 ▲0.79 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.31 ▼6.37 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.73 ▼0.73 |
Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Rollback
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲29 | 13.31 ▼0.94 | 1.68 ▼0.25 | 41.89 ▼7.88 |
Dashboard /wp-admin | 2,221 ▲18 | 5.87 ▼0.06 | 97.09 ▼18.19 | 42.71 ▲0.52 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▼0.03 | 35.26 ▼2.73 | 39.33 ▲1.35 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 22.97 ▲5.39 | 671.32 ▲10.45 | 55.62 ▼5.19 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.15 ▼0.10 | 111.13 ▲7.59 | 48.46 ▼0.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/wp-rollback/includes/rollback-menu.php:10
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wp-rollback/wp-rollback.php Passed 13 tests
The entry point to "WP Rollback" version 1.7.3 is a PHP file that has certain tags in its header comment area
68 characters long description:
Rollback (or forward) any WordPress.org plugin or theme like a boss.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,790 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 503 | 347 | 1,576 |
PHP | 5 | 257 | 381 | 649 |
CSS | 2 | 97 | 14 | 533 |
SVG | 1 | 0 | 1 | 32 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 28.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 4.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wprb-logo.png | 26.60KB | 16.43KB | ▼ 38.22% |