89% flexizoom-product-image-zoom-for-woocommerce

Code Review | FlexiZoom - Product Image Zoom for WooCommercee

WordPress plugin FlexiZoom - Product Image Zoom for WooCommercee scored89%from 54 tests.

About plugin

  • Plugin page: flexizoom-product...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.6.2
  • WordPress version: 6.3.1
  • First release: Jan 17, 2021
  • Latest release: Jan 17, 2021
  • Number of updates: 6
  • Update frequency: every 8.3 days
  • Top authors: flexiblewebdesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,081 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.04MB] [CPU: ▼2.31ms] Passed 4 tests

A check of server-side resources used by FlexiZoom - Product Image Zoom for WooCommercee
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0249.05 ▲6.36
Dashboard /wp-admin3.39 ▲0.0552.51 ▼0.08
Posts /wp-admin/edit.php3.50 ▲0.1147.71 ▼3.54
Add New Post /wp-admin/post-new.php5.97 ▲0.0485.26 ▼8.58
Media Library /wp-admin/upload.php3.31 ▲0.0438.38 ▲2.96

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for FlexiZoom - Product Image Zoom for WooCommercee
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.18 ▼0.171.88 ▼0.1644.58 ▲0.08
Dashboard /wp-admin2,204 ▲275.55 ▼0.1291.87 ▲2.1044.26 ▼0.18
Posts /wp-admin/edit.php2,112 ▲121.97 ▲0.0234.30 ▼1.7733.20 ▼0.04
Add New Post /wp-admin/post-new.php1,536 ▲823.25 ▲0.14654.26 ▼61.4552.66 ▼2.00
Media Library /wp-admin/upload.php1,412 ▲154.15 ▼0.07108.78 ▼0.2546.20 ▼0.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, 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
No output text or server-side errors detected 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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is missing
  • Tags: Please delete some tags, you are using 26 tag instead of maximum 10
Please take inspiration from this readme.txt

flexizoom-product-image-zoom-for-woocommerce/flexizoom-product-image-zoom-for-woocommerce.php 77% from 13 tests

This is the main PHP file of "FlexiZoom - Product Image Zoom for WooCommercee" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Requires at least: The required version number must match the one declared in readme.txt ("3.0.1" instead of "3.0.0")
  • Description: The description should be shorter than 140 characters (currently 164 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin3,680 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP9841071,759
Sass54021731,523
CSS357307
JavaScript48785
SVG1016

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity4.67
▷ Minimum class complexity4.00
▷ Maximum class complexity6.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods14
▷ Static methods214.29%
▷ Public methods14100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/admin/images/flexible_logo.png11.13KB5.02KB▼ 54.85%