90% wpc-additional-variation-images

Code Review | WPC Additional Variation Images for WooCommerce

WordPress plugin WPC Additional Variation Images for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: wpc-additional-va...
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 13, 2023
  • Latest release: Nov 16, 2023
  • Number of updates: 17
  • Update frequency: every 18.1 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /1,773 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
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼7.15ms] Passed 4 tests

Analyzing server-side resources used by WPC Additional Variation Images for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0834.37 ▼5.34
Dashboard /wp-admin3.39 ▲0.0444.57 ▼16.70
Posts /wp-admin/edit.php3.50 ▲0.1445.93 ▲6.48
Add New Post /wp-admin/post-new.php5.99 ▲0.1090.30 ▼9.01
Media Library /wp-admin/upload.php3.31 ▲0.0834.37 ▲2.47
About /wp-admin/admin.php?page=wpclever3.2729.38
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.2830.66

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by WPC Additional Variation Images for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲13014.19 ▲0.251.95 ▲0.3244.13 ▲0.99
Dashboard /wp-admin2,272 ▲955.60 ▼0.0595.32 ▼6.4488.34 ▲46.76
Posts /wp-admin/edit.php2,178 ▲782.02 ▼0.0139.49 ▼4.8437.49 ▲1.04
Add New Post /wp-admin/post-new.php1,596 ▲7023.00 ▼0.18740.47 ▲91.5950.33 ▼4.62
Media Library /wp-admin/upload.php1,474 ▲714.19 ▼0.05104.53 ▼1.1546.32 ▲0.82
About /wp-admin/admin.php?page=wpclever1,4082.2332.0035.52
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7322.1334.3266.34

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
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 smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: woo, variation, woocommerce, images, additional...

wpc-additional-variation-images/wpc-additional-variation-images.php Passed 13 tests

The main file in "WPC Additional Variation Images for WooCommerce" v. 1.1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
118 characters long description:
WPC Additional Variation Images allows users to configure a distinct set of images per variation of variable products.

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
Everything looks great! No dangerous files found in this plugin1,500 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP611222627
CSS3847456
JavaScript4734328
Sass19060
SVG10029

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity14.17
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity3.52
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods32
▷ Static methods26.25%
▷ Public methods32100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants9
▷ Global constants9100.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
No PNG files were detected