Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.06ms] Passed 4 tests
An overview of server-side resources used by WordPress Alert Bar
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 40.22 ▼6.03 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.23 ▲1.00 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 45.87 ▼0.61 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 89.88 ▼6.61 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 33.87 ▲2.84 |
Server storage [IO: ▲2.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for WordPress Alert Bar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲127 | 13.82 ▼0.54 | 6.28 ▲4.19 | 43.25 ▲1.92 |
Dashboard /wp-admin | 2,209 ▲17 | 4.85 ▼1.08 | 113.03 ▲7.23 | 42.70 ▼0.74 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.00 | 38.08 ▼0.76 | 35.71 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,528 ▲11 | 18.25 ▲0.67 | 641.54 ▼22.74 | 59.43 ▲8.07 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.20 ▼0.01 | 97.95 ▼0.15 | 43.51 ▼1.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-alert-bar/admin/mbwpab-customizer-options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-alert-bar/admin/mbwpab-customizer-styles.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-alert-bar/admin/mbwpab-customizer-scripts.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-alert-bar/public/wp-alert-bar-public.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #5 is missing in wp-alert-bar/assets to your readme.txt
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
wp-alert-bar/wp-alert-bar.php Passed 13 tests
The main PHP script in "WordPress Alert Bar" version 1.0.3 is automatically included on every request by WordPress
30 characters long description:
Alert Bar Plugin for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected12,800 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,299 |
CSS | 3 | 1,499 | 24 | 3,109 |
PHP | 5 | 84 | 31 | 392 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! 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 | 12 | |
▷ Named functions | 12 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin