90% wc-welcome-message

Code Review | WC Welcome Message

WordPress plugin WC Welcome Message scored90%from 54 tests.

About plugin

  • Plugin page: wc-welcome-message
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5
  • WordPress version: 6.3.1
  • First release: Mar 15, 2016
  • Latest release: Mar 31, 2016
  • Number of updates: 8
  • Update frequency: every 2.0 days
  • Top authors: Mike_Oberdick (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,133 total downloads

Benchmarks

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: ▼2.47ms] Passed 4 tests

Analyzing server-side resources used by WC Welcome Message
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.37 ▼4.18
Dashboard /wp-admin3.32 ▲0.0148.41 ▼3.36
Posts /wp-admin/edit.php3.37 ▲0.0148.08 ▲0.27
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.19 ▲1.38
Media Library /wp-admin/upload.php3.24 ▲0.0133.65 ▼2.60

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WC Welcome Message
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.24 ▼1.141.94 ▲0.1942.73 ▼4.43
Dashboard /wp-admin2,203 ▲155.83 ▲0.9696.05 ▼21.4437.85 ▼7.40
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0139.97 ▲3.0935.27 ▲1.25
Add New Post /wp-admin/post-new.php1,537 ▲2323.30 ▲5.83653.51 ▼15.2352.87 ▼1.50
Media Library /wp-admin/upload.php1,388 ▼04.23 ▼0.0094.23 ▼17.9940.24 ▼8.16

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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 no errors were found, this is by no means 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
Looking good! No server-side errors or output on direct access of PHP files

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: welcome customer, woocommerce, e-commerce, woocommerce message, customer message...

wc-welcome-message/wc-welcome-message.php Passed 13 tests

The main file in "WC Welcome Message" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
94 characters long description:
Display a personalized message to greet your WooCommerce store guests and returning customers.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected65 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1251365

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected