Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.11ms] Passed 4 tests
Analyzing server-side resources used by ALB Block Theme Type 1 Banner
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.92 ▼5.73 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.55 ▼5.19 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 51.27 ▲3.34 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.78 ▼18.29 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.87 ▼3.23 |
Server storage [IO: ▲3.50MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 68 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by ALB Block Theme Type 1 Banner
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.23 ▼0.12 | 1.71 ▲0.01 | 42.10 ▼1.87 |
Dashboard /wp-admin | 2,195 ▲18 | 5.60 ▼0.07 | 83.75 ▼6.80 | 39.69 ▼0.82 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.13 ▲0.10 | 40.41 ▼4.10 | 34.28 ▼2.45 |
Add New Post /wp-admin/post-new.php | 6,376 ▲4,850 | 22.52 ▼0.74 | 843.36 ▲172.38 | 53.72 ▼5.16 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.20 ▲0.07 | 100.72 ▼16.91 | 44.93 ▼3.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined index: wideDesktopLowDPIBannerImageURL in wp-content/plugins/alb-block-theme-type-1-banner/front-end.php on line 10
- > PHP Notice
Undefined index: bannerImageType in wp-content/plugins/alb-block-theme-type-1-banner/front-end.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/alb-block-theme-type-1-banner/front-end.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/alb-block-theme-type-1-banner/front-end.php:11
- > PHP Notice
Undefined variable: attributes in wp-content/plugins/alb-block-theme-type-1-banner/front-end.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: 100, 102
alb-block-theme-type-1-banner/index.php 77% from 13 tests
"ALB Block Theme Type 1 Banner" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("alb-block-theme-type-1-banner.php" instead of "index.php")
- Description: Keep the plugin description shorter than 140 characters (currently 144 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,456 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 369 | 106 | 3,476 |
PHP | 8 | 91 | 14 | 339 |
PO File | 1 | 67 | 79 | 239 |
Sass | 5 | 50 | 0 | 217 |
CSS | 5 | 76 | 129 | 151 |
JSON | 6 | 0 | 0 | 34 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 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 | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin