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.09MB] [CPU: ▼8.13ms] Passed 4 tests
An overview of server-side resources used by Big Boom Alert Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 36.19 ▼4.29 |
Dashboard /wp-admin | 3.41 ▲0.06 | 42.62 ▼19.51 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 44.09 ▲0.76 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 90.61 ▼7.77 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 33.35 ▼0.94 |
Alert Bar /wp-admin/options-general.php?page=albar_settings | 3.36 | 32.73 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Big Boom Alert Bar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.30 ▼1.08 | 1.73 ▼0.07 | 44.79 ▼0.48 |
Dashboard /wp-admin | 2,210 ▲19 | 5.78 ▼0.07 | 96.66 ▼10.59 | 35.86 ▼3.95 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.06 ▲0.07 | 42.07 ▲6.58 | 34.09 ▼1.92 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 18.38 ▲0.78 | 658.17 ▼31.70 | 57.66 ▲0.78 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.19 ▼0.00 | 93.30 ▼22.55 | 41.25 ▼6.69 |
Alert Bar /wp-admin/options-general.php?page=albar_settings | 1,649 | 7.12 | 170.76 | 73.19 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Almost there! Just fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function albar_dir() in wp-content/plugins/big-boom-alert-bar/lib/class-alert-bar.php:348
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/big-boom-alert-bar/lib/class-alert-bar-options.php:554
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/big-boom-alert-bar/big-boom-alert-bar.php:53
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: site notification, message, alert
big-boom-alert-bar/big-boom-alert-bar.php Passed 13 tests
"Big Boom Alert Bar" version 1.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
47 characters long description:
Displays an alert message anywhere on your site
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin566 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 149 | 340 | 490 |
JavaScript | 2 | 15 | 13 | 34 |
CSS | 2 | 2 | 1 | 26 |
Markdown | 1 | 11 | 0 | 16 |
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.42 |
Average class complexity | 43.50 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 24 | 100.00% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected