90% variation-gallery-simplified

Code Review | Variation Gallery Simplified

WordPress plugin Variation Gallery Simplified scored90%from 54 tests.

About plugin

  • Plugin page: variation-gallery...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.3
  • WordPress version: 6.3.1
  • First release: Jul 21, 2023
  • Latest release: Aug 27, 2023
  • Number of updates: 4
  • Update frequency: every 9.5 days
  • Top authors: sajjad67 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /246 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Variation Gallery Simplified
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.83 ▼10.60
Dashboard /wp-admin3.31 ▲0.0059.24 ▲7.68
Posts /wp-admin/edit.php3.36 ▲0.0049.02 ▲0.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.75 ▼13.80
Media Library /wp-admin/upload.php3.23 ▲0.0033.39 ▼2.71

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Variation Gallery Simplified
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.361.81 ▼0.2243.04 ▲1.32
Dashboard /wp-admin2,192 ▲155.54 ▼0.0298.77 ▼0.6444.53 ▼5.61
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0536.17 ▲0.1034.43 ▼6.47
Add New Post /wp-admin/post-new.php1,526 ▼023.12 ▼0.42649.41 ▼44.6456.74 ▼5.53
Media Library /wp-admin/upload.php1,403 ▲34.18 ▲0.00101.18 ▼14.4246.21 ▼1.21

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: gallery, woo-variation, variation, woo, variation-gallery...

variation-gallery-simplified/variation-gallery-simplified.php Passed 13 tests

The main PHP script in "Variation Gallery Simplified" version 1.0.1 is automatically included on every request by WordPress
57 characters long description:
Add multiple images per product variation on WooCommerce.

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
There were no executable files found in this plugin542 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP56885273
JavaScript2433161
CSS2164108

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions14
▷ Named functions535.71%
▷ Anonymous functions964.29%
Constants2
▷ Global constants2100.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 are no PNG files in this plugin