Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼142.54ms] Passed 4 tests
This is a short check of server-side resources used by WP Alert Bars
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.02 | 34.59 ▲4.28 |
Dashboard /wp-admin | 3.07 ▲0.01 | 48.34 ▲4.34 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 43.29 ▼1.44 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 96.33 ▼576.66 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 34.86 ▲3.67 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Alert Bars
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,809 ▲213 | 16.33 ▲0.77 | 11.26 ▲0.05 | 52.79 ▼2.41 |
Dashboard /wp-admin | 2,987 ▲50 | 5.91 ▼0.22 | 155.10 ▲3.77 | 115.06 ▼8.00 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.72 ▲0.00 | 62.49 ▼9.86 | 95.88 ▼0.63 |
Add New Post /wp-admin/post-new.php | 1,685 ▲2 | 18.85 ▲0.13 | 381.49 ▼8.51 | 115.57 ▲3.65 |
Media Library /wp-admin/upload.php | 1,827 ▲17 | 5.06 ▲0.03 | 163.80 ▲9.85 | 121.70 ▼1.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-alert-bars/admin/view/wab-settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-alert-bars/front/view/wab-front-view.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
5 plugin tags: alert bar, notification, bar, notification bar, alert
wp-alert-bars/wp-alert-bars.php Passed 13 tests
The main file in "WP Alert Bars" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
112 characters long description:
Allow users to display a notification/alert box in a Post or Page multiple times. Use shortcode: [wp_alert_bars]
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin416 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 36 | 41 | 300 |
CSS | 2 | 3 | 7 | 79 |
JavaScript | 2 | 10 | 5 | 37 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 81.82% |
▷ Protected methods | 1 | 4.55% |
▷ Private methods | 3 | 13.64% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.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