98% masterwoos-woocommerce-variations-per-page

Code Review | WooCommerce Variations Per Page

WordPress plugin WooCommerce Variations Per Page scored 98% from 54 tests.

About plugin

  • Plugin page: masterwoos-woocom...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4.1-4.7.2
  • WordPress version: 5.8.1
  • First release: Feb 28, 2017
  • Latest release: Feb 28, 2017
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: masterwoos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,165 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by WooCommerce Variations Per Page
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1241.90 ▲20.07
Dashboard /wp-admin3.07 ▲0.0148.30 ▲0.88
Posts /wp-admin/edit.php3.12 ▲0.0144.49 ▼3.45
Add New Post /wp-admin/post-new.php5.42 ▼0.0193.20 ▼560.94
Media Library /wp-admin/upload.php3.01 ▲0.0127.67 ▼3.67

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WooCommerce Variations Per Page
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,702 ▲10616.17 ▲0.637.92 ▼2.2851.94 ▼5.85
Dashboard /wp-admin2,970 ▲335.87 ▼0.09143.13 ▼6.42114.09 ▼9.19
Posts /wp-admin/edit.php2,739 ▼02.69 ▲0.0272.09 ▲2.1890.63 ▲1.32
Add New Post /wp-admin/post-new.php1,683 ▲10218.53 ▼1.74394.83 ▲0.56123.39 ▲4.27
Media Library /wp-admin/upload.php1,804 ▼05.02 ▼0.02166.42 ▲9.49122.54 ▼6.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 79% from 29 tests

readme.txt Passed 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
5 plugin tags: product variations, woocommerce variable products, product editing, variations per page, woocommerce

masterwoos-woocommerce-variations-per-page/masterwoos-woocommerce-product-variations-per-page.php 54% from 13 tests

The entry point to "WooCommerce Variations Per Page" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("masterwoos-woocommerce-variations-per-page.php" instead of "masterwoos-woocommerce-product-variations-per-page.php")
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.1" instead of "3.4.1")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Description: The description should be shorter than 140 characters (currently 240 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin35 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1153835

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin