79% ds-site-message

Code Review | DS Site Message

WordPress plugin DS Site Message scored 79% from 54 tests.

About plugin

  • Plugin page: ds-site-message
  • Plugin version: 1.14.4
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-6.2
  • WordPress version: 6.3.1
  • First release: Feb 21, 2018
  • Latest release: Apr 17, 2023
  • Number of updates: 22
  • Update frequency: every 85.5 days
  • Top authors: divspot (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 4,909 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.05 ▼0.09
Dashboard /wp-admin3.36 ▲0.0543.42 ▼4.31
Posts /wp-admin/edit.php3.47 ▲0.1148.16 ▼2.21
Add New Post /wp-admin/post-new.php5.94 ▲0.0585.90 ▼21.21
Media Library /wp-admin/upload.php3.28 ▲0.0535.80 ▲4.53
DS Site Message /wp-admin/tools.php?page=ds-site-message3.4337.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.25 ▼0.298.21 ▲0.8546.02 ▲5.54
Dashboard /wp-admin2,210 ▲195.85 ▼0.01102.58 ▼2.6142.88 ▲1.28
Posts /wp-admin/edit.php2,090 ▼22.04 ▼0.0238.57 ▼2.2337.98 ▲1.76
Add New Post /wp-admin/post-new.php1,517 ▲317.83 ▲0.29689.14 ▲14.1358.90 ▲5.51
Media Library /wp-admin/upload.php1,392 ▲74.18 ▼0.0593.26 ▼9.8942.38 ▼2.48
DS Site Message /wp-admin/tools.php?page=ds-site-message2,7477.94185.42116.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

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:
LanguageFilesBlank linesComment linesLines of code
CSS35571251,788
Sass831941,706
PHP7862661,061
JavaScript33776146
SVG10012

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 code0.55
Average class complexity14.00
▷ Minimum class complexity9.00
▷ Maximum class complexity19.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods215.38%
▷ Public methods1184.62%
▷ Protected methods00.00%
▷ Private methods215.38%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/images/icon-xs.png3.05KB0.62KB▼ 79.64%