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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.44ms] Passed 4 tests
An overview of server-side resources used by Hide Admin Bar by RocketCode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 35.73 ▼10.07 |
Dashboard /wp-admin | 3.33 ▲0.03 | 49.57 ▼1.12 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.34 ▼5.46 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 89.20 ▼5.11 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.51 ▲0.04 |
Hide Admin Bar - RocketCode /wp-admin/options-general.php?page=rocketcode_hab | 3.20 | 32.95 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Hide Admin Bar by RocketCode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,630 ▼141 | 13.57 ▼0.81 | 4.66 ▲2.67 | 43.90 ▼2.39 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▼0.03 | 106.68 ▲4.06 | 39.36 ▼5.70 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.07 | 36.99 ▼2.86 | 31.44 ▼6.59 |
Add New Post /wp-admin/post-new.php | 1,541 ▲12 | 23.14 ▲4.67 | 678.08 ▲78.73 | 52.41 ▼0.71 |
Media Library /wp-admin/upload.php | 1,386 ▼5 | 4.18 ▲0.00 | 101.06 ▼3.55 | 40.49 ▼6.86 |
Hide Admin Bar - RocketCode /wp-admin/options-general.php?page=rocketcode_hab | 814 | 2.03 | 25.51 | 29.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rocketcode_hab
- > Notice in wp-content/plugins/hide-admin-bar-by-rocketcode/rocketcode_HAB.php+139
Trying to access array offset on value of type bool
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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-admin-bar-by-rocketcode/rocketcode_HAB.php:34
- > 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)
Everything seems fine, but this is not an exhaustive test
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
Attributes that require attention:
- Screenshots: Add a description for screenshot #1 in hide-admin-bar-by-rocketcode/assets to your readme.txt
hide-admin-bar-by-rocketcode/rocketcode_HAB.php 92% from 13 tests
The primary PHP file in "Hide Admin Bar by RocketCode" version 1.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("hide-admin-bar-by-rocketcode.php" instead of "rocketcode_HAB.php")
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 plugin117 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 28 | 8 | 117 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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
No PNG images were found in this plugin