Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.08ms] Passed 4 tests
An overview of server-side resources used by Toggle Admin Toolbar
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 43.01 ▼0.43 |
Dashboard /wp-admin | 3.36 ▲0.06 | 52.58 ▲1.96 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 48.92 ▲0.76 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 84.73 ▼14.60 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 41.29 ▲5.88 |
Toggle Toolbar /wp-admin/options-general.php?page=bpm_tat | 3.25 | 31.23 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Toggle Admin Toolbar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲64 | 13.25 ▼1.33 | 1.92 ▼0.28 | 44.25 ▲1.80 |
Dashboard /wp-admin | 2,236 ▲33 | 5.83 ▼0.07 | 103.61 ▼4.03 | 40.42 ▲0.97 |
Posts /wp-admin/edit.php | 2,121 ▲21 | 2.04 ▲0.05 | 35.89 ▼3.09 | 38.06 ▲3.88 |
Add New Post /wp-admin/post-new.php | 1,540 ▲14 | 17.64 ▲0.07 | 634.03 ▼65.98 | 61.99 ▲5.52 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.24 ▲0.02 | 102.95 ▼0.47 | 49.24 ▼0.81 |
Toggle Toolbar /wp-admin/options-general.php?page=bpm_tat | 839 | 2.19 | 26.22 | 30.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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/toggle-admin-toolbar/lib/admin-settings.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
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: development, email
toggle-admin-toolbar/toggle-admin-toolbar.php Passed 13 tests
The primary PHP file in "Toggle Admin Toolbar" version 1.0.2 is used by WordPress to initiate all plugin functionality
45 characters long description:
Adds options to toggle admin menu visibility.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected295 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 55 | 182 | 295 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin