Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/ha-banners/widget/stat.php+2
Undefined index: clickIdBanner
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.02ms] Passed 4 tests
An overview of server-side resources used by HA Banners
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 45.73 ▲2.28 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.76 ▼2.33 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.68 ▼1.80 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.70 ▼1.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.93 ▼2.64 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by HA Banners
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.27 ▼0.10 | 1.71 ▼0.09 | 45.83 ▲4.26 |
Dashboard /wp-admin | 2,195 ▲15 | 5.60 ▼0.08 | 90.21 ▲0.55 | 39.52 ▼6.35 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 1.97 ▼0.05 | 34.69 ▼1.44 | 30.97 ▼10.39 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.36 ▲5.94 | 621.63 ▼51.98 | 53.48 ▼1.64 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.22 ▲0.07 | 101.54 ▲4.01 | 41.82 ▼0.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
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
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/ha-banners/widget/habnners-widget.php:2
- > PHP Notice
Undefined index: clickIdBanner in wp-content/plugins/ha-banners/widget/stat.php on line 2
- > PHP Notice
Undefined variable: click_view in wp-content/plugins/ha-banners/widget/stat.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 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
3 plugin tags: manager banners, banners, widget banners
ha-banners/haa-banners.php 92% from 13 tests
"HA Banners" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ha-banners.php" instead of "haa-banners.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected961 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 95 | 10 | 642 |
CSS | 2 | 12 | 2 | 177 |
PO File | 1 | 38 | 39 | 100 |
JavaScript | 2 | 9 | 0 | 42 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 13.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 9 | |
▷ Named functions | 9 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin