Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/disable-back-button/admin/redux-framework/inc/class.redux_filesystem.php+29
Creating default object from empty value
Server metrics [RAM: ▼0.36MB] [CPU: ▼43.08ms] Passed 4 tests
Server-side resources used by Disable Back Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 15.78 ▼25.25 |
Dashboard /wp-admin | 3.64 ▲0.34 | 16.70 ▼32.72 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 16.02 ▼37.50 |
Add New Post /wp-admin/post-new.php | 3.64 ▼2.24 | 20.23 ▼76.84 |
Media Library /wp-admin/upload.php | 3.64 ▲0.42 | 18.43 ▼16.63 |
DBB Options /wp-admin/options-general.php?page=dbb_options | 3.65 | 16.86 |
Install Plugins /wp-admin/plugins.php?page=install-required-plugins | 3.75 | 16.56 |
Redux Framework /wp-admin/tools.php?page=redux-about | 3.65 | 14.93 |
Server storage [IO: ▲5.52MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 510 new files
Database: no new tables, 8 new options
New WordPress options |
---|
dbb-transients |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
redux_version_upgraded_from |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Disable Back Button
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,921 ▲160 | 13.59 ▼1.02 | 2.41 ▲0.45 | 43.59 ▼3.52 |
Dashboard /wp-admin | 2,321 ▲118 | 4.89 ▼0.19 | 101.62 ▼12.39 | 45.72 ▲3.68 |
Posts /wp-admin/edit.php | 2,147 ▲44 | 2.06 ▲0.06 | 39.81 ▼6.28 | 41.78 ▲8.01 |
Add New Post /wp-admin/post-new.php | 1,558 ▲4 | 17.52 ▼0.55 | 618.58 ▼16.85 | 68.96 ▲14.35 |
Media Library /wp-admin/upload.php | 1,443 ▲40 | 4.19 ▲0.01 | 96.36 ▼5.02 | 48.11 ▼1.22 |
DBB Options /wp-admin/options-general.php?page=dbb_options | 1,170 | 2.61 | 59.24 | 48.47 |
Install Plugins /wp-admin/plugins.php?page=install-required-plugins | 982 | 2.08 | 27.08 | 33.34 |
Redux Framework /wp-admin/tools.php?page=redux-about | 1,108 | 3.65 | 75.60 | 76.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/disable-back-button/admin/redux-framework/inc/class.redux_filesystem.php+29
Creating default object from empty value
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- redux_version_upgraded_from
- dbb-transients
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=redux-about
- > Warning in wp-content/plugins/disable-back-button/admin/redux-framework/inc/class.redux_filesystem.php+29
Creating default object from empty value
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
- 25× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/disable-back-button/admin/tgm/class-tgm-plugin-activation.php:2109
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/disable-back-button/admin/redux-framework/inc/welcome/views/support.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-back-button/admin/redux-framework/inc/class.p.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/disable-back-button/admin/redux-framework/inc/welcome/views/credits.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/disable-back-button/admin/redux-framework/templates/panel/header.tpl.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Section' not found in wp-content/plugins/disable-back-button/admin/redux-framework/inc/extensions/customizer/inc/customizer_devs.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/disable-back-button/admin/redux-framework/inc/welcome/views/extensions.php:64
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/disable-back-button/admin/redux-framework/templates/panel/content.tpl.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-back-button/admin/redux-framework/inc/fields/select/elusive-icons.php:312
- > PHP Fatal error
Uncaught Error: Class 'Redux_Customizer_Control' not found in wp-content/plugins/disable-back-button/admin/redux-framework/inc/extensions/customizer/inc/customizer_fields.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
2 plugin tags: funnel, conversion
disable-back-button/disable-back-button.php Passed 13 tests
The principal PHP file in "Disable Back Button" v. 1.0.1 is loaded by WordPress automatically on each request
63 characters long description:
Allows you to disable the back button on your WordPress website
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected43,301 lines of code in 389 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 111 | 4,195 | 7,016 | 17,401 |
JavaScript | 168 | 3,262 | 2,570 | 15,382 |
Sass | 54 | 1,181 | 60 | 7,568 |
JSON | 2 | 184 | 0 | 945 |
SVG | 1 | 0 | 0 | 934 |
CSS | 48 | 146 | 54 | 832 |
Markdown | 2 | 48 | 0 | 103 |
LESS | 2 | 2 | 0 | 81 |
Bourne Shell | 1 | 24 | 0 | 55 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 113)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 32.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 880.00 |
Average method complexity | 6.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 113.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 112 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 112 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 689 | |
▷ Static methods | 107 | 15.53% |
▷ Public methods | 525 | 76.20% |
▷ Protected methods | 114 | 16.55% |
▷ Private methods | 50 | 7.26% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
Constants | 64 | |
▷ Global constants | 4 | 6.25% |
▷ Class constants | 60 | 93.75% |
▷ Public constants | 60 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
32 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/redux-framework/assets/img/2cl.png | 2.91KB | 0.24KB | ▼ 91.79% |
admin/redux-framework/assets/img/4-col-portfolio.png | 1.01KB | 0.17KB | ▼ 83.45% |
admin/redux-framework/assets/css/vendor/jquery-ui-bootstrap/images/ui-icons_f6cf3b_256x240.png | 8.68KB | 4.11KB | ▼ 52.68% |
admin/redux-framework/assets/css/vendor/jquery-ui-bootstrap/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
admin/redux-framework/assets/img/1c.png | 0.13KB | 0.13KB | ▼ 0.72% |