89% superzoom-woocommerce-product-image-zoom

Code Review | superZoom- WooCommerce Product Image Zoom

WordPress plugin superZoom- WooCommerce Product Image Zoom scored89%from 54 tests.

About plugin

  • Plugin page: superzoom-woocomm...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.7.4
  • WordPress version: 6.3.1
  • First release: May 31, 2017
  • Latest release: May 31, 2017
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: somykamble (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,395 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
Installer ran successfully

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

A check of server-side resources used by superZoom- WooCommerce Product Image Zoom
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.06 ▲7.15
Dashboard /wp-admin3.31 ▲0.0148.62 ▼2.46
Posts /wp-admin/edit.php3.36 ▲0.0145.21 ▼2.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0188.86 ▼12.48
Media Library /wp-admin/upload.php3.23 ▲0.0036.68 ▲2.12

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

superZoom- WooCommerce Product Image Zoom: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,925 ▲16413.63 ▼0.757.38 ▲5.3243.25 ▼1.30
Dashboard /wp-admin2,221 ▲245.79 ▼0.08102.36 ▼2.2538.19 ▼4.32
Posts /wp-admin/edit.php2,103 ▼01.97 ▼0.0435.55 ▼4.6434.10 ▲0.59
Add New Post /wp-admin/post-new.php1,545 ▼023.10 ▼0.08648.43 ▲18.6850.42 ▼8.26
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.0596.18 ▼11.3841.55 ▼9.56

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 does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

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

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #2 (The Magnifier settings page. Choose the size of the zoom area, the size of the image to be shown in zoom area and the its position (on the right or over the image).), #3 (The slider settings page. You can choose to use the slider for product image thumbnails, set how many images to show within the slider, and the behavior of the slider, choosing if circular, infinite or standard carousel.), #4 (The zoom applied to a product image, showing zoomed image on the right side.), #5 (The zoom applied to a product image, showing zoomed image over the same image.), #6 (Choose how many items the slider should show, the image thumbnails will fit the available width.)
You can take inspiration from this readme.txt

superzoom-woocommerce-product-image-zoom/superZoom_WooCommerce Product Image Zoom.php 92% from 13 tests

"superZoom- WooCommerce Product Image Zoom" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("superzoom-woocommerce-product-image-zoom.php" instead of "superZoom_WooCommerce Product Image Zoom.php")

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
Good job! No executable or dangerous file extensions detected94 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript316687
PHP114197

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin