Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.79ms] Passed 4 tests
Analyzing server-side resources used by Sitewide Notice WP
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 44.48 ▲1.08 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.47 ▼6.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.47 ▼1.51 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 84.47 ▼11.09 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.75 ▲0.09 |
Sitewide Notice WP /wp-admin/options-general.php?page=sitewide-notice-settings | 3.20 | 29.17 |
Server storage [IO: ▲0.03MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Sitewide Notice WP
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.85 ▲0.60 | 1.57 ▼0.30 | 39.88 ▼4.11 |
Dashboard /wp-admin | 2,210 ▲19 | 4.84 ▼0.97 | 103.16 ▼16.18 | 40.41 ▼5.68 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.00 | 39.23 ▲2.67 | 34.32 ▼1.89 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.23 ▲5.02 | 627.39 ▼24.32 | 51.39 ▼8.03 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.21 ▲0.01 | 98.43 ▲4.11 | 40.80 ▼2.73 |
Sitewide Notice WP /wp-admin/options-general.php?page=sitewide-notice-settings | 1,195 | 2.45 | 56.68 | 27.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 14 tag instead of maximum 10
sitewide-notice-wp/sitewide-notice-wp.php Passed 13 tests
The main file in "Sitewide Notice WP" v. 2.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
59 characters long description:
Adds a simple message bar to the front-end of your website.
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 plugin433 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 72 | 58 | 303 |
JavaScript | 2 | 25 | 23 | 128 |
CSS | 1 | 0 | 3 | 1 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 4.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 11 | |
▷ Static methods | 6 | 54.55% |
▷ Public methods | 8 | 72.73% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 27.27% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin