Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼9.44ms] Passed 4 tests
Server-side resources used by Alert Box Block - Display notice/alerts in the front end.
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.02 ▼1.90 |
Dashboard /wp-admin | 3.32 ▼0.02 | 44.50 ▼14.57 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 42.57 ▼1.81 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.39 ▼19.48 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 42.55 ▲11.27 |
Server storage [IO: ▲1.37MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Alert Box Block - Display notice/alerts in the front end.: 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,791 ▲45 | 14.35 ▼0.22 | 1.66 ▲0.12 | 46.54 ▲8.98 |
Dashboard /wp-admin | 2,198 ▲23 | 5.64 ▼0.05 | 94.91 ▼2.21 | 41.18 ▼2.77 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.01 | 32.88 ▼2.25 | 35.09 ▼2.12 |
Add New Post /wp-admin/post-new.php | 6,368 ▲4,842 | 28.41 ▲5.33 | 909.69 ▲221.66 | 59.20 ▲11.57 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.12 ▼0.11 | 109.55 ▲13.53 | 46.01 ▲2.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABB_VERSION - assumed 'ABB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/alert-box-block/dist/editor.asset.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alert-box-block/inc/block.php:4
- > PHP Warning
Use of undefined constant ABB_VERSION - assumed 'ABB_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/alert-box-block/dist/script.asset.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Requires at least: Version not formatted correctly
alert-box-block/plugin.php 92% from 13 tests
The entry point to "Alert Box Block - Display notice/alerts in the front end." version 1.0.9 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("alert-box-block.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected339 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 208 |
PO File | 1 | 31 | 55 | 80 |
PHP | 5 | 11 | 13 | 46 |
CSS | 3 | 0 | 6 | 3 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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