Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.96ms] Passed 4 tests
An overview of server-side resources used by DS Site Message
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.05 ▼0.09 |
Dashboard /wp-admin | 3.36 ▲0.05 | 43.42 ▼4.31 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.16 ▼2.21 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.90 ▼21.21 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.80 ▲4.53 |
DS Site Message /wp-admin/tools.php?page=ds-site-message | 3.43 | 37.29 |
Server storage [IO: ▲4.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
dssm_settings |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
dssm_version |
Browser metrics Passed 4 tests
An overview of browser requirements for DS Site Message
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.25 ▼0.29 | 8.21 ▲0.85 | 46.02 ▲5.54 |
Dashboard /wp-admin | 2,210 ▲19 | 5.85 ▼0.01 | 102.58 ▼2.61 | 42.88 ▲1.28 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.04 ▼0.02 | 38.57 ▼2.23 | 37.98 ▲1.76 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 17.83 ▲0.29 | 689.14 ▲14.13 | 58.90 ▲5.51 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.18 ▼0.05 | 93.26 ▼9.89 | 42.38 ▼2.48 |
DS Site Message /wp-admin/tools.php?page=ds-site-message | 2,747 | 7.94 | 185.42 | 116.67 |
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
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/ds-site-message/admin/default-settings.php:4
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/tools.php?page=ds-site-message
- > Javascript (severe) in unknown
/wp-content/plugins/ds-site-message/admin/assets/vendors/wp-color-picker-alpha/wp-color-picker-alpha.min.js?ver=1.14.4 10:503 Uncaught ReferenceError: wpColorPickerL10n is not defined
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: down for maintenance, maintenance mode, under construction, website message, temporarily unavailable...
ds-site-message/ds-site-message.php Passed 13 tests
This is the main PHP file of "DS Site Message" version 1.14.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
61 characters long description:
Add a maintenance or coming soon page to your wordpress site.
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
Good job! No executable or dangerous file extensions detected4,713 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 557 | 125 | 1,788 |
Sass | 8 | 319 | 4 | 1,706 |
PHP | 7 | 86 | 266 | 1,061 |
JavaScript | 3 | 37 | 76 | 146 |
SVG | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 13 | |
▷ Static methods | 2 | 15.38% |
▷ Public methods | 11 | 84.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 15.38% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon-xs.png | 3.05KB | 0.62KB | ▼ 79.64% |