Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼1.19MB] [CPU: ▼41.78ms] Passed 4 tests
Analyzing server-side resources used by Better Admin Help Tabs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.78 ▼0.68 | 16.60 ▼20.73 |
Dashboard /wp-admin | 2.82 ▼0.48 | 18.91 ▼32.61 |
Posts /wp-admin/edit.php | 2.82 ▼0.53 | 17.51 ▼31.05 |
Add New Post /wp-admin/post-new.php | 2.82 ▼3.06 | 17.17 ▼82.72 |
Media Library /wp-admin/upload.php | 2.82 ▼0.41 | 16.28 ▼17.34 |
All Help Tabs /wp-admin/edit.php?post_type=sbah_helptab | 2.82 | 16.57 |
BAH Options /wp-admin/edit.php?post_type=sbah_helptab&page=sbah_options | 2.82 | 17.57 |
Add New /wp-admin/post-new.php?post_type=sbah_helptab | 2.82 | 18.40 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Better Admin Help Tabs: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,971 ▲236 | 14.73 ▲0.46 | 1.79 ▲0.11 | 43.94 ▼3.80 |
Dashboard /wp-admin | 2,377 ▲189 | 6.46 ▲1.62 | 127.49 ▲10.76 | 43.00 ▼0.19 |
Posts /wp-admin/edit.php | 2,280 ▲194 | 3.30 ▲1.30 | 51.37 ▲15.80 | 33.82 ▲1.89 |
Add New Post /wp-admin/post-new.php | 1,569 ▲41 | 23.25 ▲4.92 | 577.18 ▼30.77 | 32.31 ▼19.98 |
Media Library /wp-admin/upload.php | 1,419 ▲31 | 4.14 ▼0.03 | 77.80 ▼16.51 | 44.46 ▲3.51 |
All Help Tabs /wp-admin/edit.php?post_type=sbah_helptab | 1,250 | 3.26 | 51.82 | 28.86 |
BAH Options /wp-admin/edit.php?post_type=sbah_helptab&page=sbah_options | 1,046 | 3.00 | 36.76 | 25.91 |
Add New /wp-admin/post-new.php?post_type=sbah_helptab | 2,262 | 8.10 | 177.93 | 67.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/better-admin-help-tabs/cmbclass/init.php+746
count(): Parameter must be an array or an object that implements Countable
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=sbah_helptab
- > Warning in wp-content/plugins/better-admin-help-tabs/cmbclass/init.php+746
count(): Parameter must be an array or an object that implements Countable
- 13 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=sbah_helptab
- > Notice in wp-content/plugins/better-admin-help-tabs/better-admin-help-tabs.php+275
Trying to access array offset on value of type bool
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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/better-admin-help-tabs/cmbclass/init.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/better-admin-help-tabs/better-admin-help-tabs.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/better-admin-help-tabs/sbah-options.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% 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: These screenshots do not have images: #1 (The config page for my example help tab.), #2 (The example help tab and sidebar in action.)
better-admin-help-tabs/better-admin-help-tabs.php Passed 13 tests
"Better Admin Help Tabs" version 1.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
71 characters long description:
Admin Help Tabs for WP Admin. These will work on any post type or page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin4,895 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 306 | 374 | 2,169 |
PHP | 8 | 628 | 1,036 | 1,956 |
CSS | 2 | 61 | 21 | 540 |
Markdown | 1 | 66 | 0 | 230 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 66.50 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 133 | |
▷ Static methods | 34 | 25.56% |
▷ Public methods | 131 | 98.50% |
▷ Protected methods | 2 | 1.50% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
16 PNG files occupy 0.30MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 133.07KB | 46.93KB | ▼ 64.73% |
cmbclass/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
cmbclass/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
cmbclass/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
cmbclass/images/ico-delete.png | 0.70KB | 0.72KB | 0.00% |