73% gel-proximity-for-woocommerce

Code Review | GEL Proximity | La tecnologia per l’ultimo miglio

WordPress plugin GEL Proximity | La tecnologia per l’ultimo miglio scored 73% from 54 tests.

About plugin

  • Plugin page: gel-proximity-for...
  • Plugin version:
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 5.8.1
  • First release: Oct 5, 2021
  • Latest release: Oct 23, 2021
  • Number of updates: 3
  • Update frequency: every 7.3 days
  • Top authors: gelproximity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 68 total downloads


Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼135.24ms] Passed 4 tests

This is a short check of server-side resources used by GEL Proximity | La tecnologia per l’ultimo miglio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.17 ▲0.3448.85 ▲17.27
Dashboard /wp-admin3.40 ▲0.3452.26 ▲9.88
Posts /wp-admin/edit.php3.45 ▲0.3449.60 ▲7.43
Add New Post /wp-admin/post-new.php5.70 ▲0.27102.44 ▼561.72
Media Library /wp-admin/upload.php3.28 ▲0.2738.20 ▲3.47

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 48 new files
Database: 2 new tables, 2 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GEL Proximity | La tecnologia per l’ultimo miglio
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.88 ▲0.348.13 ▲0.1353.57 ▲6.71
Dashboard /wp-admin2,970 ▲395.88 ▼0.07154.34 ▲16.35136.31 ▲30.10
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0174.48 ▲14.37104.94 ▲12.03
Add New Post /wp-admin/post-new.php1,683 ▼18918.73 ▼0.44414.10 ▲40.91118.40 ▲13.37
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.03170.92 ▲25.99131.35 ▲4.75

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie tables were found after uninstall: 2 tables
    • wp_gelprx_cart_price
    • wp_gelprx_order_history
  • This plugin did not uninstall successfully, leaving 2 options in the database
    • GelProximity_Plugin__installed
    • GelProximity_Plugin__version

Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gel-proximity-for-woocommerce/gelproximity.php:82
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/gel-proximity-for-woocommerce/classes/GelProximityWCShippingMethod.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected


Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (16 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

gel-proximity-for-woocommerce/gelproximity.php 77% from 13 tests

The primary PHP file in "GEL Proximity | La tecnologia per l’ultimo miglio" version is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 240 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gel-proximity-for-woocommerce.php" instead of "gelproximity.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin2,729 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PO File15963170

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity14.39
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
▷ Abstract classes211.11%
▷ Concrete classes1688.89%
▷ Final classes00.00%
▷ Static methods2514.79%
▷ Public methods12875.74%
▷ Protected methods2917.16%
▷ Private methods127.10%
▷ Named functions571.43%
▷ Anonymous functions228.57%
▷ Global constants725.93%
▷ Class constants2074.07%
▷ Public constants20100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/gelproximity_logo_admin.png23.12KB8.34KB▼ 63.93%
assets/img/gelproximity_logo_no_text_admin.png1.52KB1.15KB▼ 24.02%
assets/img/gelproximity_logo.png21.02KB8.61KB▼ 59.05%
assets/img/gelprx_front_logo.png30.90KB15.30KB▼ 50.49%