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.07MB] [CPU: ▼5.62ms] Passed 4 tests
An overview of server-side resources used by Simple Save Redirect Button
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 39.51 ▼7.07 |
Dashboard /wp-admin | 3.38 ▲0.04 | 51.13 ▼17.80 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 52.83 ▲4.77 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 98.96 ▲5.24 |
Media Library /wp-admin/upload.php | 3.30 ▲0.08 | 34.99 ▼2.38 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Simple Save Redirect Button
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 13.64 ▼0.65 | 1.59 ▼0.24 | 41.23 ▼1.14 |
Dashboard /wp-admin | 2,230 ▲30 | 5.88 ▲0.02 | 121.81 ▲8.45 | 56.17 ▲14.47 |
Posts /wp-admin/edit.php | 2,109 ▲12 | 2.04 ▼0.00 | 50.35 ▲13.33 | 35.16 ▲1.51 |
Add New Post /wp-admin/post-new.php | 1,535 ▼10 | 23.22 ▲0.23 | 611.18 ▼76.08 | 60.79 ▲7.12 |
Media Library /wp-admin/upload.php | 1,412 ▲9 | 4.20 ▼0.03 | 98.90 ▲0.01 | 43.63 ▼4.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 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 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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-save-redirect-button/includes/class-simple-save-redirect-actions.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% 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 your attention:
- Screenshots: These screenshots require images: #1 (screenshot-1), #2 (screenshot-2)
simple-save-redirect-button/simple-save-redirect-button.php 92% from 13 tests
Analyzing the main PHP file in "Simple Save Redirect Button" version 1.0.0
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 268 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin576 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 137 | 302 | 331 |
CSS | 1 | 2 | 11 | 92 |
JavaScript | 2 | 30 | 6 | 86 |
Sass | 1 | 12 | 0 | 67 |
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.51 |
Average class complexity | 25.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 46.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 53.33% |
Functions | 2 | |
▷ Named functions | 2 | 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
2 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 28.34KB | 10.69KB | ▼ 62.29% |
screenshot-2.png | 23.64KB | 9.50KB | ▼ 59.80% |