83% glassboxx-integration-for-woocommerce

Code Review | Glassboxx for WooCommerce

WordPress plugin Glassboxx for WooCommerce scored83%from 54 tests.

About plugin

  • Plugin page: glassboxx-integra...
  • Plugin version: 2.0.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-6.0
  • WordPress version: 6.3.1
  • First release: Aug 23, 2021
  • Latest release: Mar 17, 2023
  • Number of updates: 17
  • Update frequency: every 34.7 days
  • Top authors: glassboxx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

An overview of server-side resources used by Glassboxx for WooCommerce
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.22 ▼4.54
Dashboard /wp-admin3.37 ▲0.0744.59 ▼2.83
Posts /wp-admin/edit.php3.49 ▲0.1347.36 ▼3.37
Add New Post /wp-admin/post-new.php5.96 ▲0.0784.80 ▼13.70
Media Library /wp-admin/upload.php3.30 ▲0.0735.81 ▲1.64

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Glassboxx for WooCommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4314.48 ▲0.171.53 ▼0.4339.80 ▼7.76
Dashboard /wp-admin2,209 ▲244.87 ▼0.0196.58 ▼5.8642.16 ▼0.71
Posts /wp-admin/edit.php2,086 ▼32.02 ▼0.0436.12 ▼7.0333.45 ▼0.19
Add New Post /wp-admin/post-new.php1,514 ▼1417.83 ▼0.29699.28 ▲92.8454.02 ▲4.18
Media Library /wp-admin/upload.php1,388 ▼34.33 ▲0.0397.80 ▲4.3441.77 ▼1.57

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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 following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/glassboxx-integration-for-woocommerce/woocommerce-glassboxx.php

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 83% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: ebook, audiobook, digital downloads, woocommerce

glassboxx-integration-for-woocommerce/woocommerce-glassboxx.php 62% from 13 tests

The primary PHP file in "Glassboxx for WooCommerce" version 2.0.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("glassboxx-integration-for-woocommerce.php" instead of "woocommerce-glassboxx.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 447 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Requires at least: Required version does not match the one declared in readme.txt ("4.9.4" instead of "3.0.0")

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 plugin463 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15937415
CSS213048

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity3.95
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1894.74%
▷ Protected methods00.00%
▷ Private methods15.26%
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

PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/appstore-icon.png8.17KB6.52KB▼ 20.24%
img/firsty-group.png22.68KB7.35KB▼ 67.58%
img/glassboxx.png29.83KB16.43KB▼ 44.92%
img/googleplay-icon.png13.88KB5.38KB▼ 61.25%
img/apple-logo.png2.74KB1.18KB▼ 56.89%