78% customized-message

Code Review | Customized Message

WordPress plugin Customized Message scored78%from 54 tests.

About plugin

  • Plugin page: customized-message
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 17, 2019
  • Latest release: Nov 11, 2019
  • Number of updates: 17
  • Update frequency: every 1.5 days
  • Top authors: rpopli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /441 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.88ms] Passed 4 tests

This is a short check of server-side resources used by Customized Message
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.12 ▼2.20
Dashboard /wp-admin3.32 ▲0.0248.42 ▼8.81
Posts /wp-admin/edit.php3.37 ▲0.0246.33 ▼8.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0281.55 ▼12.15
Media Library /wp-admin/upload.php3.24 ▲0.0239.66 ▲5.49
Customized Message /wp-admin/options-general.php?page=color-options3.1931.16

Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Customized Message
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▼0.081.77 ▼0.4050.71 ▲10.91
Dashboard /wp-admin2,213 ▲224.90 ▼0.9999.37 ▼16.5142.12 ▲1.93
Posts /wp-admin/edit.php2,093 ▼32.05 ▲0.0536.62 ▼4.5431.69 ▼3.62
Add New Post /wp-admin/post-new.php1,545 ▲1222.98 ▼0.32666.61 ▲34.6754.53 ▲7.65
Media Library /wp-admin/upload.php1,392 ▲44.41 ▲0.12108.08 ▲2.6650.19 ▲2.92
Customized Message /wp-admin/options-general.php?page=color-options8242.0225.1728.61

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=color-options
    • > Notice in wp-content/plugins/customized-message/includes/admin-page.php+34
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customized-message/includes/admin-page.php:63
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/customized-message/includes/display-functions.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tested up to: Invalid plugin version format
You can look at the official readme.txt

customized-message/customized-message.php 92% from 13 tests

The main PHP file in "Customized Message" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected95 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions5100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin