Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.94ms] Passed 4 tests
Server-side resources used by WP Announcement | Dynamic Announcement, Banner, & Countdown Timer for Effective Promotions
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 41.05 ▼0.28 |
Dashboard /wp-admin | 3.48 ▲0.13 | 46.98 ▼10.75 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 50.29 ▲4.71 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 85.16 ▼5.96 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 34.09 ▲1.23 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Announcement | Dynamic Announcement, Banner, & Countdown Timer for Effective Promotions
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲168 | 13.38 ▼0.98 | 8.65 ▲7.08 | 37.75 ▼10.90 |
Dashboard /wp-admin | 2,226 ▲49 | 5.61 ▲0.03 | 93.54 ▼0.90 | 39.69 ▲4.03 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.03 ▲0.01 | 44.34 ▲3.32 | 36.24 ▲0.63 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.53 ▼0.05 | 648.62 ▼46.92 | 56.97 ▼4.24 |
Media Library /wp-admin/upload.php | 1,428 ▲31 | 4.22 ▲0.06 | 98.23 ▲0.28 | 43.66 ▲2.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/sp-announcement/sp-announcement.php
- 14× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant WPANN_PLUGIN_PATH - assumed 'WPANN_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sp-announcement/views/admin/announcement_meta_box.php on line 1
- > PHP Warning
Use of undefined constant WPANN_PLUGIN_PATH - assumed 'WPANN_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sp-announcement/includes/config/layout-options.php on line 7
- > PHP Warning
Use of undefined constant WPANN_PLUGIN_URL - assumed 'WPANN_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sp-announcement/includes/config/layout-options.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/sp-announcement/views/templates/topbar_style_default.php:4
- > PHP Warning
Use of undefined constant WPANN_PLUGIN_URL - assumed 'WPANN_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sp-announcement/includes/config/layout-options.php on line 45
- > PHP Warning
Use of undefined constant WPANN_PLUGIN_URL - assumed 'WPANN_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sp-announcement/includes/config/layout-options.php on line 40
- > PHP Fatal error
require_once(): Failed opening required 'WPANN_PLUGIN_PATH/utils/dynamic-input-fields.php' (include_path='.:/usr/share/php') in wp-content/plugins/sp-announcement/views/admin/announcement_meta_box.php on line 1
- > PHP Warning
Use of undefined constant WPANN_PLUGIN_URL - assumed 'WPANN_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sp-announcement/includes/config/layout-options.php on line 6
- > PHP Warning
Use of undefined constant WPANN_PLUGIN_URL - assumed 'WPANN_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/sp-announcement/includes/config/layout-options.php on line 30
- > PHP Warning
require_once(WPANN_PLUGIN_PATH/utils/dynamic-input-fields.php): failed to open stream: No such file or directory in wp-content/plugins/sp-announcement/views/admin/announcement_meta_box.php on line 1
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: countdown timer, banner, notification, sticky banner, announcement...
sp-announcement/sp-announcement.php 85% from 13 tests
"WP Announcement | Dynamic Announcement, Banner, & Countdown Timer for Effective Promotions" version 2.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:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please keep the plugin description shorter than 140 characters (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,616 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 125 | 149 | 1,092 |
CSS | 1 | 69 | 0 | 342 |
JavaScript | 2 | 30 | 35 | 182 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
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 | 9 | 60.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.78MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/banner_style_1_template.png | 569.86KB | 131.57KB | ▼ 76.91% |
assets/images/icon-256x256.png | 67.10KB | 20.48KB | ▼ 69.48% |
assets/images/topbar_style_3_template.png | 35.51KB | 14.93KB | ▼ 57.95% |
assets/images/banner_style_2_template.png | 92.02KB | 33.02KB | ▼ 64.12% |
assets/images/topbar_style_2_template.png | 11.47KB | 6.17KB | ▼ 46.25% |