Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼2.57ms] Passed 4 tests
Analyzing server-side resources used by GooTracking for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 36.57 ▼1.88 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.82 ▼3.09 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.31 ▼0.47 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.64 ▼4.82 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.73 ▲2.14 |
Server storage [IO: ▲23.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 271 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for GooTracking for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲37 | 14.35 ▼0.04 | 1.75 ▲0.15 | 38.23 ▼5.38 |
Dashboard /wp-admin | 2,207 ▲30 | 5.62 ▲0.02 | 84.50 ▼3.83 | 38.29 ▼0.01 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 1.96 ▼0.04 | 35.97 ▲1.45 | 32.41 ▼2.86 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 18.37 ▼4.80 | 648.18 ▲6.62 | 47.44 ▼3.46 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.23 ▲0.09 | 97.88 ▲0.77 | 42.11 ▼0.62 |
Uninstaller [IO: ▲23.10MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following itemsZombie WordPress options were found after uninstall: 7 options
- Uninstall procedure validation failed for this plugin
- > Error in wp-content/plugins/gootracking-for-woocommerce/gootracking.php+153
Uncaught Error: Class 'gootracking_option' not found in wp-content/plugins/gootracking-for-woocommerce/gootracking.php:153
Stack trace:
#0 wp-includes/class-wp-hook.php(310): gootracking_deactivate()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/includes/plugin.php(816): do_action() - This plugin has failed uninstalling correctly, leaving 271 files (23.10MB) in the plugin directory
- (new file) assets/Green.png
- (new file) assets/close.png
- (new file) assets/UPSAndPickupClient.png
- (new file) assets/b16x16_cancel.png
- (new file) assets/UPS.png
- (new file) assets/delete.png
- (new file) assets/692069053_opticon-opi-2002-2.jpg
- (new file) assets/LogoSliderWEB-03.jpg
- (new file) assets/button_ok.png
- (new file) assets/access_point.png
- ...
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- recovery_mode_email_last_sent
- widget_recent-comments
- theysaidso_admin_options
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 47× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant _JPGRAPH_PATH - assumed '_JPGRAPH_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gootracking-for-woocommerce/lib/mpdf/graph.php on line 32
- > PHP Warning
require_once(_MPDF_PATHclasses/ttfontsuni.php): failed to open stream: No such file or directory in wp-content/plugins/gootracking-for-woocommerce/lib/mpdf/classes/ttfontsuni_analysis.php on line 3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gootracking-for-woocommerce/lib/mpdf/includes/CJKdata.php:18
- > PHP Warning
include_once(_JPGRAPH_PATHjpgraph_bar.php): failed to open stream: No such file or directory in wp-content/plugins/gootracking-for-woocommerce/lib/mpdf/graph.php on line 31
- > PHP Warning
include_once(_JPGRAPH_PATHjpgraph_pie3d.php): failed to open stream: No such file or directory in wp-content/plugins/gootracking-for-woocommerce/lib/mpdf/graph.php on line 30
- > PHP Warning
Use of undefined constant _JPGRAPH_PATH - assumed '_JPGRAPH_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/gootracking-for-woocommerce/lib/mpdf/graph.php on line 26
- > PHP Fatal error
'break' not in the 'loop' or 'switch' context in wp-content/plugins/gootracking-for-woocommerce/lib/mpdf/classes/svg.php on line 2710
- > PHP Warning
include_once(_JPGRAPH_PATHjpgraph_line.php): failed to open stream: No such file or directory in wp-content/plugins/gootracking-for-woocommerce/lib/mpdf/graph.php on line 25
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/gootracking-for-woocommerce/lib/mpdf/config.php:6
- > PHP Notice
Undefined index: filename in wp-content/plugins/gootracking-for-woocommerce/lib/mpdf/includes/out.php on line 5
- > PHP Warning
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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Screenshot #6 (Here's a screenshot of it in action) image not found
gootracking-for-woocommerce/gootracking.php 85% from 13 tests
The main PHP script in "GooTracking for WooCommerce" version 0.1.59 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gootracking-for-woocommerce.php" instead of "gootracking.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 187 characters long)
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin153,114 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 139 | 9,321 | 9,093 | 140,547 |
JavaScript | 14 | 2,122 | 2,630 | 11,135 |
PO File | 1 | 514 | 875 | 634 |
CSS | 6 | 67 | 27 | 506 |
SVG | 1 | 0 | 0 | 288 |
INI | 1 | 1 | 0 | 4 |
PHP code 0% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 10,218)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 1,542)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 227.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10,218.00 |
Average method complexity | 16.99 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1,542.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 77 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 77 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,092 | |
▷ Static methods | 77 | 7.05% |
▷ Public methods | 1,071 | 98.08% |
▷ Protected methods | 21 | 1.92% |
▷ Private methods | 0 | 0.00% |
Functions | 151 | |
▷ Named functions | 151 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 373 | |
▷ Global constants | 63 | 16.89% |
▷ Class constants | 310 | 83.11% |
▷ Public constants | 310 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
23 PNG files occupy 0.68MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/gootracking-256.png | 14.37KB | 6.19KB | ▼ 56.96% |
assets/button_ok.png | 0.88KB | 0.82KB | ▼ 6.33% |
assets/b16x16_cancel.png | 1.11KB | 1.01KB | ▼ 8.56% |
assets/UPSAndPickupClient.png | 81.83KB | 22.63KB | ▼ 72.34% |
assets/UPS.png | 131.86KB | 38.40KB | ▼ 70.88% |