10% sitewide-message

Code Review | Sitewide Message

WordPress plugin Sitewide Message scored10%from 54 tests.

About plugin

  • Plugin page: sitewide-message
  • Plugin version: 0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.0
  • WordPress version: 6.3.1
  • First release: May 11, 2014
  • Latest release: Aug 28, 2014
  • Number of updates: 17
  • Update frequency: every 6.4 days
  • Top authors: Danny159 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /3,902 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.375.28 ▼39.62
Dashboard /wp-admin2.11 ▼1.195.80 ▼46.61
Posts /wp-admin/edit.php2.12 ▼1.255.40 ▼44.36
Add New Post /wp-admin/post-new.php2.11 ▼3.785.56 ▼100.60
Media Library /wp-admin/upload.php2.11 ▼1.126.05 ▼36.56
Site Message /wp-admin/index.php?page=site-message2.125.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.77 ▲0.491.84 ▲0.2044.28 ▼6.83
Dashboard /wp-admin2,221 ▲475.85 ▲0.1886.12 ▼14.1739.89 ▼4.48
Posts /wp-admin/edit.php2,125 ▲252.29 ▲0.2938.25 ▲1.3433.36 ▼2.16
Add New Post /wp-admin/post-new.php1,545 ▲1923.20 ▲0.23652.36 ▼25.9537.69 ▼21.87
Media Library /wp-admin/upload.php1,423 ▲234.46 ▲0.26103.81 ▼6.9345.34 ▼4.18
Site Message /wp-admin/index.php?page=site-message1,2492.7750.9823.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:
LanguageFilesBlank linesComment linesLines of code
PHP35145233
JavaScript1273

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 code0.43
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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