Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/announcements-bar/wico-announcements-bar.php+22
include_once(wp-content/plugins/announcements-bar/wicore\business.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.33ms] Passed 4 tests
This is a short check of server-side resources used by Top Bar Announcements and News
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 52.31 ▲13.15 |
Dashboard /wp-admin | 3.31 ▲0.00 | 46.35 ▼5.30 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.12 ▼1.13 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.11 ▼13.72 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.93 ▲2.82 |
Server storage [IO: ▲1.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Top Bar Announcements and News: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.28 | 1.72 ▼0.06 | 42.90 ▼2.67 |
Dashboard /wp-admin | 2,195 ▲18 | 5.56 ▼0.10 | 84.15 ▼2.84 | 38.89 ▼2.83 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.02 | 34.04 ▼7.13 | 35.05 ▼8.16 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.64 ▲0.50 | 596.69 ▼1.40 | 53.02 ▲1.61 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.17 ▼0.15 | 95.83 ▼2.28 | 40.12 ▼1.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% 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)
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/announcements-bar/functions/functions.php:214
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/announcements-bar/pages/admin/main.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 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: announcements, promotions bar, bottom bar, offers, top bar
announcements-bar/wico-announcements-bar.php 85% from 13 tests
The principal PHP file in "Top Bar Announcements and News" v. 1.0.211 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Main file name: Name the main plugin file the same as the plugin slug ("announcements-bar.php" instead of "wico-announcements-bar.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin6,886 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 8 | 5,733 |
PHP | 5 | 144 | 84 | 464 |
JavaScript | 3 | 91 | 85 | 381 |
CSS | 7 | 22 | 32 | 308 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 22 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
wicore/images/icon-css.png | 1.11KB | 1.06KB | ▼ 4.48% |
wicore/images/icon-flash.png | 1.23KB | 1.30KB | 0.00% |
images/wp-pluginlogo.png | 0.70KB | 0.60KB | ▼ 14.17% |
wicore/images/icon-settings.png | 2.24KB | 1.63KB | ▼ 27.55% |
wicore/images/icon-styles.png | 1.85KB | 1.47KB | ▼ 20.69% |