74% glmall

Code Review | GLMall

WordPress plugin GLMall scored74%from 54 tests.

About plugin

  • Plugin page: glmall
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.0.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Jan 17, 2023
  • Latest release: Feb 22, 2023
  • Number of updates: 4
  • Update frequency: every 10.8 days
  • Top authors: glbrain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /431 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.77MB] [CPU: ▼3.62ms] Passed 4 tests

This is a short check of server-side resources used by GLMall
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.26 ▲0.7946.35 ▲7.51
Dashboard /wp-admin4.09 ▲0.7451.78 ▼6.88
Posts /wp-admin/edit.php4.14 ▲0.7852.16 ▼1.02
Add New Post /wp-admin/post-new.php6.67 ▲0.7892.11 ▼14.10
Media Library /wp-admin/upload.php4.01 ▲0.7845.38 ▲8.41
GLMall /wp-admin/admin.php?page=push-products3.9935.87
GLMall Settings /wp-admin/admin.php?page=glmall-settings3.9944.70

Server storage [IO: ▲0.47MB] [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: 33 new files
Database: 3 new tables, 8 new options
New tables
wp_glmall_products_map
wp_glmall_settings
wp_glmall_products_sync_hostory
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
glmall_plugin_version
widget_theysaidso_widget
widget_recent-posts
glmall_activated
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by GLMall
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,892 ▲12113.70 ▼0.911.73 ▼0.1436.76 ▼2.99
Dashboard /wp-admin2,259 ▲715.83 ▲0.9294.86 ▼13.6572.66 ▲29.83
Posts /wp-admin/edit.php2,141 ▲522.01 ▲0.0235.77 ▼3.3434.34 ▼1.72
Add New Post /wp-admin/post-new.php1,564 ▲4518.47 ▼4.86691.01 ▲38.8380.42 ▲29.92
Media Library /wp-admin/upload.php1,441 ▲504.25 ▲0.01102.95 ▲1.3077.94 ▲31.85
GLMall /wp-admin/admin.php?page=push-products8452.0327.9630.02
GLMall Settings /wp-admin/admin.php?page=glmall-settings8412.0626.1924.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 plugin did not uninstall successfully, leaving 3 tables in the database
    • wp_glmall_settings
    • wp_glmall_products_sync_hostory
    • wp_glmall_products_map
  • Zombie WordPress options detected upon uninstall: 7 options
    • glmall_plugin_version
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/admin.php?page=glmall-settings
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=glmall-settings 187:51 Uncaught TypeError: Cannot read properties of null (reading 'checked')

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: ecommerce, glmall, glmall for woocommerce, glbrain

glmall/glmall.php Passed 13 tests

The primary PHP file in "GLMall" version 1.0.0 is used by WordPress to initiate all plugin functionality
23 characters long description:
GLMall for 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
Success! There were no dangerous files found in this plugin4,125 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP261,3321,4903,800
Markdown1800320
CSS2052
SVG2002
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity26.15
▷ Minimum class complexity1.00
▷ Maximum class complexity117.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods186
▷ Static methods2613.98%
▷ Public methods14678.49%
▷ Protected methods84.30%
▷ Private methods3217.20%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants35
▷ Global constants1234.29%
▷ Class constants2365.71%
▷ Public constants23100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin