Benchmarks
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.00MB] [CPU: ▼3.39ms] Passed 4 tests
This is a short check of server-side resources used by GEL Proximity | Aggregatore Punti di Ritiro e Locker
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.73 ▼1.07 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.73 ▼4.21 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.68 ▼2.88 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.33 ▼5.38 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.44 ▲0.12 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 73 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_gelprx_order_history |
wp_gelprx_cart_price |
wp_gelprx_return |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
GelProximity_Plugin__version |
widget_theysaidso_widget |
can_compress_scripts |
GelProximity_Plugin__installed |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GEL Proximity | Aggregatore Punti di Ritiro e Locker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.17 ▼0.09 | 1.90 ▲0.22 | 43.61 ▼4.18 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▲0.07 | 84.73 ▼14.00 | 40.70 ▼2.31 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.99 ▲0.03 | 34.13 ▼2.54 | 32.19 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,535 ▲9 | 18.35 ▼4.67 | 597.56 ▼106.98 | 62.73 ▲13.50 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.24 ▲0.03 | 93.86 ▼9.56 | 41.15 ▼1.87 |
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: 3 tables
- wp_gelprx_cart_price
- wp_gelprx_return
- wp_gelprx_order_history
- This plugin did not uninstall successfully, leaving 8 options in the database
- GelProximity_Plugin__version
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- GelProximity_Plugin__installed
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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 0% 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
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/gel-proximity-for-woocommerce/classes/GelProximityAdminReturnsManagerWpListTable.php
- 10× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'GelProximity_ShortCodeLoader' not found in wp-content/plugins/gel-proximity-for-woocommerce/classes/GelProximityReturnsManagerShortCode.php:5
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/gel-proximity-for-woocommerce/classes/GelProximityWCShippingMethod.php:3
- > PHP Warning
include_once(): Failed opening 'WP_PLUGIN_DIR/gel-proximity-for-woocommerce/GelProximity_ShortCodeLoader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gel-proximity-for-woocommerce/classes/GelProximityReturnsManagerShortCode.php on line 3
- > PHP Warning
include_once(WP_PLUGIN_DIR/gel-proximity-for-woocommerce/GelProximity_ShortCodeLoader.php): failed to open stream: No such file or directory in wp-content/plugins/gel-proximity-for-woocommerce/classes/GelProximityReturnsManagerShortCode.php on line 3
- > PHP Warning
include_once(WP_PLUGIN_DIR/gel-proximity-for-woocommerce/GelProximity_ShortCodeLoader.php): failed to open stream: No such file or directory in wp-content/plugins/gel-proximity-for-woocommerce/classes/GelProximityReturnsManagerShortCode.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gel-proximity-for-woocommerce/gel-proximity-for-woocommerce.php:82
- > PHP Warning
include_once(): Failed opening 'WP_PLUGIN_DIR/gel-proximity-for-woocommerce/GelProximity_ShortCodeLoader.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/gel-proximity-for-woocommerce/classes/GelProximityReturnsManagerShortCode.php on line 3
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gel-proximity-for-woocommerce/classes/GelProximityReturnsManagerShortCode.php on line 3
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/gel-proximity-for-woocommerce/classes/GelProximityReturnsManagerShortCode.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'GelProximity_ShortCodeLoader' not found in wp-content/plugins/gel-proximity-for-woocommerce/classes/GelProximityReturnsManagerShortCode.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% 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
gel-proximity-for-woocommerce/gel-proximity-for-woocommerce.php 85% from 13 tests
The primary PHP file in "GEL Proximity | Aggregatore Punti di Ritiro e Locker" version 1.1.1.6 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 240 characters long)
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 plugin5,414 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 998 | 1,187 | 4,022 |
PO File | 1 | 128 | 162 | 324 |
CSS | 2 | 60 | 2 | 255 |
JavaScript | 3 | 29 | 20 | 239 |
HTML | 7 | 0 | 0 | 201 |
Smarty | 5 | 0 | 0 | 180 |
Markdown | 1 | 44 | 0 | 123 |
JSON | 3 | 0 | 0 | 70 |
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 code | 0.40 |
Average class complexity | 23.79 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 2 | 8.33% |
▷ Concrete classes | 22 | 91.67% |
▷ Final classes | 0 | 0.00% |
Methods | 259 | |
▷ Static methods | 57 | 22.01% |
▷ Public methods | 214 | 82.63% |
▷ Protected methods | 30 | 11.58% |
▷ Private methods | 15 | 5.79% |
Functions | 8 | |
▷ Named functions | 6 | 75.00% |
▷ Anonymous functions | 2 | 25.00% |
Constants | 35 | |
▷ Global constants | 7 | 20.00% |
▷ Class constants | 28 | 80.00% |
▷ Public constants | 28 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/gelproximity_logo_front.png | 52.87KB | 25.92KB | ▼ 50.96% |
assets/img/gelproximity_logo.png | 21.02KB | 8.61KB | ▼ 59.05% |
assets/img/gelprx_front_logo.png | 30.90KB | 15.30KB | ▼ 50.49% |
assets/img/gelproximity_logo_admin.png | 23.12KB | 8.34KB | ▼ 63.93% |
assets/img/gelproximity_logo_no_text_admin.png | 1.52KB | 1.15KB | ▼ 24.02% |