Benchmarks
Plugin footprint 40% 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
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/sitewide-message/sitewide-message.php+16
date_default_timezone_set(): Timezone ID '' is invalid
Server metrics [RAM: ▼1.90MB] [CPU: ▼57.80ms] Passed 4 tests
This is a short check of server-side resources used by Sitewide Message
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 5.28 ▼39.62 |
Dashboard /wp-admin | 2.11 ▼1.19 | 5.80 ▼46.61 |
Posts /wp-admin/edit.php | 2.12 ▼1.25 | 5.40 ▼44.36 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.56 ▼100.60 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.05 ▼36.56 |
Site Message /wp-admin/index.php?page=site-message | 2.12 | 5.76 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Sitewide Message
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.77 ▲0.49 | 1.84 ▲0.20 | 44.28 ▼6.83 |
Dashboard /wp-admin | 2,221 ▲47 | 5.85 ▲0.18 | 86.12 ▼14.17 | 39.89 ▼4.48 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.29 ▲0.29 | 38.25 ▲1.34 | 33.36 ▼2.16 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.20 ▲0.23 | 652.36 ▼25.95 | 37.69 ▼21.87 |
Media Library /wp-admin/upload.php | 1,423 ▲23 | 4.46 ▲0.26 | 103.81 ▼6.93 | 45.34 ▼4.18 |
Site Message /wp-admin/index.php?page=site-message | 1,249 | 2.77 | 50.98 | 23.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/sitewide-message/sitewide-message.php+16
date_default_timezone_set(): Timezone ID '' is invalid
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/index.php?page=site-message
- > Notice in wp-content/plugins/sitewide-message/sitewide-message.php+16
date_default_timezone_set(): Timezone ID '' is invalid
- > GET request to /wp-admin/index.php?page=site-message
- > Notice in wp-content/plugins/sitewide-message/sitewide-message.php+111
Undefined index: settings-updated
- 15 occurences, only the last one shown
- > GET request to /wp-admin/index.php?page=site-message
- > Notice in wp-content/plugins/sitewide-message/sitewide-message.php+208
Trying to access array offset on value of type bool
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/index.php?page=site-message
- > Rendering (warning) in unknown
/wp-admin/index.php?page=site-message 206 The specified value "19/10/2023" does not conform to the required format, "yyyy-MM-dd".
- > GET request to /wp-admin/index.php?page=site-message
- > Rendering (warning) in unknown
/wp-admin/index.php?page=site-message 211 The specified value "19/10/2023" does not conform to the required format, "yyyy-MM-dd".
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: simple message bar, wpml, getconversion, thatblogger, call to action...
sitewide-message/sitewide-message.php Passed 13 tests
The principal PHP file in "Sitewide Message" v. 0.6 is loaded by WordPress automatically on each request
59 characters long description:
Display a message at the top of every page on your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin236 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 51 | 45 | 233 |
JavaScript | 1 | 2 | 7 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
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 | 8 | |
▷ Named functions | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected