Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼11.29ms] Passed 4 tests
This is a short check of server-side resources used by Remove/Hide Admin Toolbar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.40 ▼0.06 | 36.25 ▼1.69 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.47 ▼15.08 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.25 ▼5.25 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 77.30 ▼23.12 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.12 ▲2.98 |
Server storage [IO: ▲0.50MB] [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 |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Remove/Hide Admin Toolbar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,626 ▼120 | 14.72 ▼0.03 | 1.23 ▼0.47 | 43.45 ▼0.40 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼1.05 | 96.01 ▼10.19 | 36.76 ▼7.45 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.01 ▲0.04 | 36.35 ▼5.98 | 29.84 ▼5.91 |
Add New Post /wp-admin/post-new.php | 1,535 ▼1 | 23.13 ▼0.07 | 627.12 ▼33.63 | 65.73 ▲11.51 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.23 ▼0.01 | 96.20 ▼5.88 | 40.11 ▼6.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: frontend, hide, hidden, utility, admin-bar...
maje-media-remove-admin-bar/MajeMedia-WP-Remove-Admin-Bar.php 69% from 13 tests
"Remove/Hide Admin Toolbar" version 1.2.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("4.3" instead of "5.3")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("maje-media-remove-admin-bar.php" instead of "MajeMedia-WP-Remove-Admin-Bar.php")
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
There were no executable files found in this plugin79 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Markdown | 1 | 22 | 0 | 59 |
PHP | 1 | 15 | 23 | 20 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 3 | |
▷ Static methods | 2 | 66.67% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.49MB with 0.28MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 367.72KB | 164.50KB | ▼ 55.27% |
screenshot-1.png | 135.12KB | 54.10KB | ▼ 59.96% |