Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.02ms] Passed 4 tests
Analyzing server-side resources used by Banner Alerts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 38.69 ▼1.77 |
Dashboard /wp-admin | 3.41 ▲0.06 | 45.52 ▼13.38 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.86 ▼0.68 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 90.95 ▼7.14 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 30.75 ▼1.80 |
Add New /wp-admin/post-new.php?post_type=banner_alert | 3.45 | 48.19 |
All Alerts /wp-admin/edit.php?post_type=banner_alert | 3.38 | 42.12 |
Banner Alerts /wp-admin/options-general.php?page=banner-alerts | 3.30 | 30.73 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Banner Alerts: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,969 ▲197 | 13.49 ▼0.92 | 13.76 ▲11.87 | 43.78 ▲3.57 |
Dashboard /wp-admin | 2,229 ▲52 | 5.60 ▼0.08 | 87.75 ▼2.02 | 39.94 ▼1.22 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 1.95 ▼0.07 | 39.99 ▲3.40 | 36.58 ▼0.19 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.65 ▲0.45 | 620.10 ▼35.81 | 67.89 ▲18.70 |
Media Library /wp-admin/upload.php | 1,431 ▲31 | 4.19 ▲0.02 | 98.02 ▼2.32 | 40.94 ▲0.12 |
Add New /wp-admin/post-new.php?post_type=banner_alert | 2,252 | 7.61 | 179.90 | 64.29 |
All Alerts /wp-admin/edit.php?post_type=banner_alert | 1,100 | 1.92 | 31.52 | 30.44 |
Banner Alerts /wp-admin/options-general.php?page=banner-alerts | 997 | 1.67 | 24.61 | 29.24 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function Plugin\\BannerAlerts\\add_action() in wp-content/plugins/banner-alerts/src/BannerAlerts.php:24
- > 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 Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: notice, warning, alert banner, alert, banner alert...
banner-alerts/banner-alerts.php Passed 13 tests
The entry point to "Banner Alerts" version 1.4.1 is a PHP file that has certain tags in its header comment area
97 characters long description:
Provides an easy interface for creating and displaying alerts or notices as a banner on a website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected541 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 53 | 12 | 349 |
JavaScript | 2 | 45 | 1 | 192 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 20.50 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 86.67% |
▷ Protected methods | 2 | 13.33% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.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
No PNG images were found in this plugin