78% sales-manager-for-woocommerce

Code Review | Sales Manager For WooCommerce

WordPress plugin Sales Manager For WooCommerce scored78%from 54 tests.

About plugin

  • Plugin page: sales-manager-for...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.6
  • WordPress version: 6.3.1
  • First release: Aug 8, 2020
  • Latest release: Dec 14, 2020
  • Number of updates: 8
  • Update frequency: every 16.3 days
  • Top authors: j2fb (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /703 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.22ms] Passed 4 tests

Server-side resources used by Sales Manager For WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.17 ▼7.06
Dashboard /wp-admin3.31 ▲0.0048.46 ▼1.18
Posts /wp-admin/edit.php3.36 ▲0.0043.81 ▼6.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.26 ▼13.80
Media Library /wp-admin/upload.php3.23 ▲0.0034.48 ▼0.93
All Scheduled Sales /wp-admin/edit.php?post_type=wsm-scheduled-sale3.0426.41
Settings /wp-admin/edit.php?post_type=wsm-scheduled-sale&page=wsm-scheduled-sale-settings3.0021.78
Add New /wp-admin/post-new.php?post_type=wsm-scheduled-sale3.0423.63

Server storage [IO: ▲0.13MB] [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: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Sales Manager For WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.16 ▼1.651.81 ▼0.2543.95 ▲0.92
Dashboard /wp-admin2,209 ▲215.09 ▲0.17111.44 ▲3.9842.19 ▼0.68
Posts /wp-admin/edit.php2,092 ▲32.02 ▼0.0034.54 ▼3.5436.19 ▲1.85
Add New Post /wp-admin/post-new.php1,537 ▲323.09 ▼0.10675.33 ▲47.4261.93 ▲9.34
Media Library /wp-admin/upload.php1,391 ▲34.23 ▲0.06100.42 ▼7.9644.27 ▲0.44
All Scheduled Sales /wp-admin/edit.php?post_type=wsm-scheduled-sale280.440.063.68
Settings /wp-admin/edit.php?post_type=wsm-scheduled-sale&page=wsm-scheduled-sale-settings280.440.093.59
Add New /wp-admin/post-new.php?post_type=wsm-scheduled-sale280.440.124.12

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sales-manager-for-woocommerce/includes/wsm-custom-post-type.php:55
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sales-manager-for-woocommerce/includes/wsm-activation.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=wsm-scheduled-sale
    • > Network (severe)
    wp-admin/edit.php?post_type=wsm-scheduled-sale - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
    • > GET request to /wp-admin/edit.php?post_type=wsm-scheduled-sale&page=wsm-scheduled-sale-settings
    • > Network (severe)
    wp-admin/edit.php?post_type=wsm-scheduled-sale&page=wsm-scheduled-sale-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
    • > GET request to /wp-admin/post-new.php?post_type=wsm-scheduled-sale
    • > Network (severe)
    wp-admin/post-new.php?post_type=wsm-scheduled-sale - Failed to load resource: the server responded with a status of 500 (Internal Server Error)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (11 tag instead of maximum 10)
The official readme.txt might help

sales-manager-for-woocommerce/sales-manager-for-woocommerce.php Passed 13 tests

The main file in "Sales Manager For WooCommerce" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
50 characters long description:
Create & Schedule Special % Sales/Discounts Easily

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 plugin1,147 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP5188158902
JavaScript22827196
CSS27249

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin