84% wpc-shoppable-images

Code Review | WPC Shoppable Images for WooCommerce

WordPress plugin WPC Shoppable Images for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: wpc-shoppable-images
  • Plugin version: 2.0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 18, 2022
  • Latest release: Oct 2, 2023
  • Number of updates: 22
  • Update frequency: every 21.5 days
  • Top authors: wpclever (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,096 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼3.32ms] Passed 4 tests

This is a short check of server-side resources used by WPC Shoppable Images for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0844.69 ▼3.94
Dashboard /wp-admin47.49 ▲44.109,093,291.94 ▲9,093,222.59
Posts /wp-admin/edit.php3.54 ▲0.1449.41 ▼2.13
Add New Post /wp-admin/post-new.php6.03 ▲0.1090.87 ▼12.97
Media Library /wp-admin/upload.php3.35 ▲0.0844.90 ▲5.77
About /wp-admin/admin.php?page=wpclever3.3235.53
Essential Kit /wp-admin/admin.php?page=wpclever-kit3.5334.41

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

WPC Shoppable Images for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲12014.27 ▼0.091.84 ▲0.0946.34 ▲5.65
Dashboard /wp-admin2,260 ▲835.61 ▲0.0586.66 ▼5.6473.90 ▲28.92
Posts /wp-admin/edit.php2,181 ▲812.01 ▼0.0134.08 ▲0.3832.90 ▼1.81
Add New Post /wp-admin/post-new.php1,600 ▲7423.10 ▼0.57710.28 ▲25.1562.43 ▲6.73
Media Library /wp-admin/upload.php1,471 ▲714.16 ▼0.04107.62 ▼8.0084.29 ▲37.33
About /wp-admin/admin.php?page=wpclever1,4082.1431.1635.58
Essential Kit /wp-admin/admin.php?page=wpclever-kit5,7352.1631.4358.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 23 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpclever-kit
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 23 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpclever-kit
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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 need to be fixed: Please take inspiration from this readme.txt

wpc-shoppable-images/wpc-shoppable-images.php 92% from 13 tests

The main PHP script in "WPC Shoppable Images for WooCommerce" version 2.0.9 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 150 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,056 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
CSS73931521,820
PHP612522907
JavaScript55915276
SVG31053

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity20.00
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.83
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods41
▷ Static methods24.88%
▷ Public methods3995.12%
▷ Protected methods00.00%
▷ Private methods24.88%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin