90% increase-product-variation-limit-for-woocommerce

Code Review | Increase Product Variation Limit For Woocommerce

WordPress plugin Increase Product Variation Limit For Woocommerce scored90%from 54 tests.

About plugin

  • Plugin page: increase-product-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 4, 2019
  • Latest release: Jul 4, 2019
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: poglaa (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,845 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.37ms] Passed 4 tests

A check of server-side resources used by Increase Product Variation Limit For Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.01 ▼0.43
Dashboard /wp-admin3.33 ▲0.0246.42 ▲1.50
Posts /wp-admin/edit.php3.44 ▲0.0849.46 ▲1.02
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.31 ▼13.32
Media Library /wp-admin/upload.php3.25 ▲0.0235.48 ▼0.76

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Increase Product Variation Limit For Woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.114.49 ▲3.0240.97 ▲4.71
Dashboard /wp-admin2,206 ▲185.77 ▲0.88115.35 ▼1.1952.84 ▲7.99
Posts /wp-admin/edit.php2,089 ▲32.01 ▼0.0538.64 ▲2.6535.22 ▲3.12
Add New Post /wp-admin/post-new.php1,542 ▲818.53 ▼4.72583.65 ▼112.5550.34 ▼2.83
Media Library /wp-admin/upload.php1,388 ▲34.21 ▼0.0396.18 ▼22.6540.68 ▼7.80

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Plugin settings) image missing
The official readme.txt is a good inspiration

increase-product-variation-limit-for-woocommerce/increase-product-variation-limit-for-woocommerce.php Passed 13 tests

The main file in "Increase Product Variation Limit For Woocommerce" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Adds settings to increase the product variation limit in WooComerce.

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
Success! There were no dangerous files found in this plugin136 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.00
▷ Minimum class complexity3.00
▷ Maximum class complexity7.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods541.67%
▷ Public methods1083.33%
▷ Protected methods18.33%
▷ Private methods18.33%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin