89% woo-schedule-stock-manager

Code Review | WooCommerce Schedule Stock Manager

WordPress plugin WooCommerce Schedule Stock Manager scored89%from 54 tests.

About plugin

  • Plugin page: woo-schedule-stoc...
  • Plugin version: 2.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.4.1
  • WordPress version: 6.3.1
  • First release: Sep 27, 2018
  • Latest release: Nov 20, 2023
  • Number of updates: 28
  • Update frequency: every 67.1 days
  • Top authors: rajkakadiya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /6,588 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by WooCommerce Schedule Stock Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.41 ▲3.13
Dashboard /wp-admin3.31 ▼0.0447.08 ▼18.50
Posts /wp-admin/edit.php3.36 ▲0.0048.34 ▲3.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0079.71 ▼16.11
Media Library /wp-admin/upload.php3.23 ▲0.0033.01 ▼3.07

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Schedule Stock Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.31 ▲0.071.60 ▼0.1640.46 ▼3.26
Dashboard /wp-admin2,192 ▲185.60 ▼0.0088.42 ▼6.0041.71 ▲2.57
Posts /wp-admin/edit.php2,103 ▲31.95 ▼0.0140.01 ▼0.4235.86 ▼2.02
Add New Post /wp-admin/post-new.php1,526 ▼023.61 ▲2.80610.07 ▼155.8757.17 ▲0.44
Media Library /wp-admin/upload.php1,400 ▲64.23 ▲0.0397.63 ▲0.7342.27 ▼0.66

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Screenshot #7 (Schedule Stock Manage options on Variation product) image required
The official readme.txt might help

woo-schedule-stock-manager/woocommerce-schedule-stock-manager.php 85% from 13 tests

This is the main PHP file of "WooCommerce Schedule Stock Manager" version 2.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 187 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-schedule-stock-manager.php" instead of "woocommerce-schedule-stock-manager.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected667 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44352433
CSS1358188
JavaScript15346

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity27.50
▷ Minimum class complexity16.00
▷ Maximum class complexity39.00
Average method complexity5.82
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods11100.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
library/assets/images/info_icon.png0.61KB0.35KB▼ 42.70%
library/assets/images/crown.png0.50KB0.43KB▼ 13.61%