Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.39ms] Passed 4 tests
Analyzing server-side resources used by WP Back Button
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 46.91 ▲2.95 |
Dashboard /wp-admin | 3.38 ▲0.08 | 49.47 ▼6.08 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 48.05 ▼6.61 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 94.17 ▼11.83 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.97 ▲3.55 |
WP Back Button /wp-admin/options-general.php?page=wp_back_button | 3.25 | 33.83 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_xm_wpbb_w |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Back Button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,928 ▲167 | 13.54 ▼0.81 | 9.66 ▲7.38 | 40.54 ▼12.00 |
Dashboard /wp-admin | 2,218 ▲50 | 5.84 ▲0.19 | 92.09 ▼0.26 | 40.76 ▼3.13 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.29 ▲0.35 | 42.23 ▲0.87 | 35.00 ▼4.27 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 23.29 ▲0.24 | 620.83 ▼66.80 | 34.51 ▼20.72 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.38 ▲0.23 | 102.25 ▼16.40 | 43.46 ▼2.21 |
WP Back Button /wp-admin/options-general.php?page=wp_back_button | 1,255 | 2.36 | 54.03 | 25.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_xm_wpbb_w
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp_back_button
- > Notice in wp-content/plugins/wp-back-button/options-page.php+208
Trying to access array offset on value of type bool
SRP 0% 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
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-back-button/wp-back-button-widget.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-back-button/wp-back-button.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-back-button/options-page.php:2
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please add an image for screenshot #4 (screenshot-4.png)
wp-back-button/wp-back-button.php 92% from 13 tests
Analyzing the main PHP file in "WP Back Button" version 1.1.3
Please take the time to fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin448 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 109 | 19 | 337 |
CSS | 1 | 13 | 8 | 71 |
JavaScript | 2 | 6 | 1 | 40 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 2 | |
▷ Global constants | 2 | 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
No PNG files were detected