10% woo-fullzoom-lite

Code Review | WooCommerce Fullscreen Image Zoom

WordPress plugin WooCommerce Fullscreen Image Zoom scored10%from 54 tests.

About plugin

  • Plugin page: woo-fullzoom-lite
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7.3
  • WordPress version: 6.3.1
  • First release: May 10, 2017
  • Latest release: May 10, 2017
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: barfaraz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,347 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method WOOFULLZOOM::plugin_activated() should not be called statically

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

This is a short check of server-side resources used by WooCommerce Fullscreen Image Zoom
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.10 ▼8.34
Dashboard /wp-admin3.33 ▼0.0148.94 ▼17.58
Posts /wp-admin/edit.php3.44 ▲0.0948.94 ▲2.93
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.65 ▼18.03
Media Library /wp-admin/upload.php3.25 ▲0.0337.66 ▼1.73
WOO FULLZOOM /wp-admin/options-general.php?page=woofz3.2230.90

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
woofz_options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for WooCommerce Fullscreen Image Zoom
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.44 ▼0.091.67 ▼0.4341.75 ▼1.08
Dashboard /wp-admin2,199 ▲315.55 ▼0.1187.53 ▼4.8739.81 ▼1.76
Posts /wp-admin/edit.php2,104 ▲41.99 ▲0.0238.89 ▲4.2334.56 ▼0.59
Add New Post /wp-admin/post-new.php1,531 ▲523.22 ▲0.09677.91 ▲0.6546.94 ▼11.30
Media Library /wp-admin/upload.php1,401 ▲14.23 ▲0.0695.67 ▼24.6440.77 ▼7.69
WOO FULLZOOM /wp-admin/options-general.php?page=woofz1,5282.7955.6528.50

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • woofz_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 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 0% from 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
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/woo-fullzoom-lite/woo-fullzoom.php
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Notice
      Undefined variable: product in wp-content/plugins/woo-fullzoom-lite/templates/default.php on line 3
    • > PHP Notice
      Undefined variable: thumbnail_medium_url in wp-content/plugins/woo-fullzoom-lite/templates/default.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_title() on null in wp-content/plugins/woo-fullzoom-lite/templates/default.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Settings Page), #2 (Product page Images), #3 (Product Image Zoom), #4 (Product Image Zoom)
The official readme.txt is a good inspiration

woo-fullzoom-lite/woo-fullzoom.php 92% from 13 tests

Analyzing the main PHP file in "WooCommerce Fullscreen Image Zoom" version 1.0.4
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("woo-fullzoom-lite.php" instead of "woo-fullzoom.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin786 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP3709395
CSS400193
JavaScript4250103
SVG30150
PO File1508645

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity79.00
▷ Minimum class complexity79.00
▷ Maximum class complexity79.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 files were detected