90% smntcs-show-sale-price-date-for-woocommerce

Code Review | SMNTCS Show Sale Price Date for WooCommerce

WordPress plugin SMNTCS Show Sale Price Date for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: smntcs-show-sale-...
  • Plugin version: 1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2020
  • Latest release: Dec 3, 2022
  • Number of updates: 14
  • Update frequency: every 70.8 days
  • Top authors: nielslange (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /977 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

A check of server-side resources used by SMNTCS Show Sale Price Date for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.77 ▲1.46
Dashboard /wp-admin3.33 ▼0.0245.16 ▼12.44
Posts /wp-admin/edit.php3.39 ▲0.0243.76 ▼7.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0280.16 ▼18.23
Media Library /wp-admin/upload.php3.26 ▲0.0233.70 ▲2.90

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by SMNTCS Show Sale Price Date for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.37 ▲0.011.77 ▲0.0445.24 ▲3.93
Dashboard /wp-admin2,209 ▲295.64 ▼0.0694.64 ▲8.1744.37 ▲0.06
Posts /wp-admin/edit.php2,111 ▲111.98 ▲0.0336.49 ▼6.1035.10 ▼5.42
Add New Post /wp-admin/post-new.php1,532 ▼523.07 ▲5.00656.44 ▲37.6752.46 ▼8.58
Media Library /wp-admin/upload.php1,414 ▲144.23 ▲0.05100.52 ▲2.6447.14 ▲1.96

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention: Please take inspiration from this readme.txt

smntcs-show-sale-price-date-for-woocommerce/smntcs-show-sale-price-date-for-woocommerce.php Passed 13 tests

The main file in "SMNTCS Show Sale Price Date for WooCommerce" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Show WooCommerce sale prices date on shopping page

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin3,586 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JSON3003,379
PHP1195687
Markdown130058
XML1121350
YAML1008
JavaScript1024

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods5100.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin