84% wc-sales-count-manager

Code Review | Sales Count Manager for WooCommerce

WordPress plugin Sales Count Manager for WooCommerce scored 84% from 54 tests.

About plugin

  • Plugin page: wc-sales-count-ma...
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 7, 2015
  • Latest release: Sep 27, 2023
  • Number of updates: 62
  • Update frequency: every 47.5 days
  • Top authors: india-web-developer (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

700+ active / 13,872 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.00MB] [CPU: ▼5.90ms] Passed 4 tests

This is a short check of server-side resources used by Sales Count Manager for WooCommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.11 ▼8.65
Dashboard /wp-admin3.31 ▲0.0044.67 ▼0.76
Posts /wp-admin/edit.php3.36 ▲0.0048.37 ▲2.33
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.81 ▼15.23
Media Library /wp-admin/upload.php3.23 ▲0.0034.49 ▲1.06

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Sales Count Manager for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6813.62 ▼0.781.61 ▼0.4842.76 ▼2.09
Dashboard /wp-admin2,206 ▲155.83 ▲0.9292.98 ▼5.5438.01 ▼6.90
Posts /wp-admin/edit.php2,092 ▲62.05 ▲0.0239.23 ▲2.8132.79 ▲0.69
Add New Post /wp-admin/post-new.php1,536 ▼023.27 ▲0.16657.50 ▲9.7053.80 ▲1.64
Media Library /wp-admin/upload.php1,391 ▲34.30 ▲0.0792.63 ▼14.7640.31 ▼6.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wc-sales-count-manager/wc-scm-class.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: orders, e-commerce, sales manager, order manager, sold item manager...

wc-sales-count-manager/wc-sales-count-manager.php Passed 13 tests

"Sales Count Manager for WooCommerce" version 2.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
121 characters long description:
Display number of sold items and social share buttons on product details pages. Its the add-on of the WooCommerce plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin334 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP34176333
CSS1011

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity20.50
▷ Minimum class complexity9.00
▷ Maximum class complexity32.00
Average method complexity3.29
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods17
▷ Static methods211.76%
▷ Public methods17100.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

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