Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/plugin-reinstaller/plugin-reinstaller.php+28
Methods with the same name as their class will not be constructors in a future version of PHP; plugin_reinstaller has a deprecated constructor
Server metrics [RAM: ▼1.93MB] [CPU: ▼58.37ms] Passed 4 tests
Server-side resources used by Plugin Reinstaller
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.52 ▼43.26 |
Dashboard /wp-admin | 2.08 ▼1.23 | 5.59 ▼46.04 |
Posts /wp-admin/edit.php | 2.08 ▼1.28 | 5.87 ▼45.91 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.81 | 5.97 ▼98.28 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.78 ▼31.40 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Plugin Reinstaller: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.25 ▼1.06 | 1.64 ▼0.24 | 45.76 ▲2.50 |
Dashboard /wp-admin | 2,206 ▲15 | 5.89 ▲0.99 | 99.20 ▼6.21 | 40.47 ▲1.00 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.07 | 34.66 ▼4.09 | 38.58 ▲4.31 |
Add New Post /wp-admin/post-new.php | 1,534 ▼8 | 23.43 ▲5.18 | 689.01 ▲62.95 | 54.66 ▼5.20 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.21 ▲0.01 | 113.07 ▲13.56 | 47.09 ▲4.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/plugin-reinstaller/plugin-reinstaller.php+28
Methods with the same name as their class will not be constructors in a future version of PHP; plugin_reinstaller has a deprecated constructor
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/plugin-reinstaller/plugin-reinstaller.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Select `Update` > `Bulk Actions`.)
plugin-reinstaller/plugin-reinstaller.php Passed 13 tests
"Plugin Reinstaller" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
46 characters long description:
This plugin enables the bulk plugin reinstall.
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
Everything looks great! No dangerous files found in this plugin45 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 22 | 45 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 4.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.05MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 48.31KB | 48.13KB | 0.38% |