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.49MB] [CPU: ▼4.22ms] Passed 4 tests
Server-side resources used by Notice Bar
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.54 | 48.06 ▲9.32 |
Dashboard /wp-admin | 3.83 ▲0.52 | 51.70 ▼1.70 |
Posts /wp-admin/edit.php | 3.88 ▲0.52 | 57.15 ▲2.06 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 87.08 ▼18.24 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 38.64 ▲0.99 |
All Subscribers /wp-admin/edit.php?post_type=subscriber | 3.73 | 42.31 |
Settings /wp-admin/edit.php?post_type=notice-bar&page=notice-bar | 3.68 | 36.22 |
Add New /wp-admin/post-new.php?post_type=notice-bar | 4.02 | 44.22 |
All Notice Bars /wp-admin/edit.php?post_type=notice-bar | 3.74 | 37.76 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Notice Bar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲200 | 13.42 ▼0.94 | 9.15 ▲7.44 | 37.66 ▼6.72 |
Dashboard /wp-admin | 2,227 ▲47 | 5.55 ▼0.11 | 85.71 ▼1.94 | 38.12 ▼7.40 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 1.99 ▼0.01 | 39.08 ▼0.16 | 38.70 ▼4.66 |
Add New Post /wp-admin/post-new.php | 1,558 ▲30 | 23.62 ▲0.58 | 630.10 ▼37.46 | 51.41 ▼5.87 |
Media Library /wp-admin/upload.php | 1,441 ▲44 | 4.17 ▼0.12 | 96.49 ▼8.11 | 46.33 ▼4.74 |
All Subscribers /wp-admin/edit.php?post_type=subscriber | 1,111 | 2.09 | 30.91 | 31.82 |
Settings /wp-admin/edit.php?post_type=notice-bar&page=notice-bar | 1,033 | 2.67 | 48.46 | 34.84 |
Add New /wp-admin/post-new.php?post_type=notice-bar | 9,766 | 4.30 | 419.65 | 84.34 |
All Notice Bars /wp-admin/edit.php?post_type=notice-bar | 1,125 | 2.75 | 43.80 | 42.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=notice-bar
- > Notice in wp-content/plugins/notice-bar/inc/backend/views/visibility-config.php+23
date_default_timezone_set(): Timezone ID 'UTC+0' is invalid
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/notice-bar/inc/cores/activation.php
- > /wp-content/plugins/notice-bar/inc/notice-types/news-ticker/news-ticker-styles.php
- > /wp-content/plugins/notice-bar/inc/notice-types/social-icons/social-icons-styles.php
- 34× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/notice-bar/inc/notice-types/class-notice-bar-nb-subscribe.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/notice-bar/inc/backend/views/visibility-config.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/notice-bar/inc/notice-types/class-notice-bar-cta.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notice-bar/inc/class-notice-bar-frontend-scripts.php:55
- > PHP Notice
Undefined variable: active_section_count in wp-content/plugins/notice-bar/css/dynamic-css.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/notice-bar/inc/notice-types/nb-subscribe/nb-subscribe-styles.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/notice-bar/css/front-end-css.php:4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/notice-bar/inc/notice-types/social-icons/social-icons-styles.php on line 3
- > PHP Notice
Undefined variable: nb_settings in wp-content/plugins/notice-bar/inc/notice-types/social-icons/social-icons-styles.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/notice-bar/inc/backend/views/display-config.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #2, #3, #4, #5 in notice-bar/assets to your readme.txt
- Tags: There are too many tags (13 tag instead of maximum 10)
notice-bar/notice-bar.php 85% from 13 tests
The main file in "Notice Bar" v. 3.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin19,291 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 12 | 1,911 | 933 | 13,276 |
PHP | 34 | 721 | 505 | 4,537 |
CSS | 9 | 81 | 30 | 1,465 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 16.06 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 94.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 10 | 10.75% |
▷ Public methods | 86 | 92.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 7.53% |
Functions | 12 | |
▷ Named functions | 8 | 66.67% |
▷ Anonymous functions | 4 | 33.33% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/drag.png | 1.32KB | 0.28KB | ▼ 78.95% |
css/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
css/images/arw-lft.png | 1.57KB | 0.61KB | ▼ 61.15% |
css/images/arw-lft1.png | 1.69KB | 0.64KB | ▼ 62.22% |
css/images/docico.png | 7.15KB | 3.26KB | ▼ 54.48% |