89% wc-disable-zoom-lightbox-features

Code Review | WC Disable zoom / lightbox feature in 3.0

WordPress plugin WC Disable zoom / lightbox feature in 3.0 scored89%from 54 tests.

About plugin

  • Plugin page: wc-disable-zoom-l...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Apr 20, 2017
  • Latest release: Jun 25, 2020
  • Number of updates: 5
  • Update frequency: every 232.4 days
  • Top authors: Rynald0s (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active /10,344 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.64ms] Passed 4 tests

This is a short check of server-side resources used by WC Disable zoom / lightbox feature in 3.0
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.31 ▼3.41
Dashboard /wp-admin3.31 ▲0.0048.46 ▼6.86
Posts /wp-admin/edit.php3.36 ▲0.0051.37 ▼5.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.42 ▼18.84
Media Library /wp-admin/upload.php3.23 ▲0.0035.78 ▼2.67

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

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

Browser metrics Passed 4 tests

WC Disable zoom / lightbox feature in 3.0: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▼0.251.74 ▼0.1140.01 ▼0.48
Dashboard /wp-admin2,195 ▲185.50 ▼0.0783.04 ▼9.2439.27 ▼9.09
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0539.34 ▲0.5837.65 ▲0.46
Add New Post /wp-admin/post-new.php1,526 ▼023.19 ▲0.04636.47 ▼69.2050.33 ▼13.75
Media Library /wp-admin/upload.php1,397 ▼34.16 ▼0.02105.21 ▼4.4045.23 ▼6.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Screenshots: Screenshot #1 (Plugin settings) image required
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
Please take inspiration from this readme.txt

wc-disable-zoom-lightbox-features/wc-disable-zoom-lbox.php 92% from 13 tests

Analyzing the main PHP file in "WC Disable zoom / lightbox feature in 3.0" version 1.1
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("wc-disable-zoom-lightbox-features.php" instead of "wc-disable-zoom-lbox.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 plugin61 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1291961

PHP code Passed 2 tests

Analyzing 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.32
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin