Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.16MB] [CPU: ▼10.81ms] Passed 4 tests
A check of server-side resources used by myGDEX Prime for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.44 ▲1.93 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.91 ▼9.91 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.46 ▲1.60 |
Add New Post /wp-admin/post-new.php | 5.16 ▼0.72 | 64.26 ▼36.87 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.97 ▲3.90 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
recovery_mode_email_last_sent |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by myGDEX Prime for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,923 ▲177 | 14.04 ▲0.07 | 8.66 ▲7.09 | 43.72 ▲1.71 |
Dashboard /wp-admin | 2,249 ▲46 | 6.08 ▲0.17 | 116.04 ▲11.64 | 44.69 ▼3.44 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.30 ▲0.27 | 36.25 ▲1.60 | 34.56 ▼4.80 |
Add New Post /wp-admin/post-new.php | 45 ▼1,500 | 0.44 ▼22.84 | 0.11 ▼640.83 | 9.17 ▼41.69 |
Media Library /wp-admin/upload.php | 1,425 ▲28 | 4.43 ▲0.19 | 123.98 ▲22.46 | 48.52 ▲0.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- recovery_mode_email_last_sent
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/mygdex-prime-for-woocommerce/public/partials/gdex-prime-public-display.php
- > /wp-content/plugins/mygdex-prime-for-woocommerce/admin/partials/gdex-prime-admin-display.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mygdex-prime-for-woocommerce/admin/partials/admin-notice.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wc_get_order() in wp-content/plugins/mygdex-prime-for-woocommerce/admin/partials/shipment-order-meta-box.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mygdex-prime-for-woocommerce/admin/partials/admin-notice.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/mygdex-prime-for-woocommerce/admin/partials/admin-notice.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/mygdex-prime-for-woocommerce/includes/woocommerce/class-gdex-prime-shipping-method.php:3
- > PHP Notice
Undefined variable: notice in wp-content/plugins/mygdex-prime-for-woocommerce/admin/partials/admin-notice.php on line 1
- > PHP Notice
Undefined variable: notice in wp-content/plugins/mygdex-prime-for-woocommerce/admin/partials/admin-notice.php on line 2
- > PHP Fatal error
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 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
These attributes need your attention:
- Screenshots: A description for screenshot #4 is required in mygdex-prime-for-woocommerce/assets to your readme.txt
mygdex-prime-for-woocommerce/gdex-prime.php 77% from 13 tests
Analyzing the main PHP file in "myGDEX Prime for WooCommerce" version 1.0.4
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mygdex-prime-for-woocommerce.php" instead of "gdex-prime.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "4.0.0")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected929 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 265 | 785 | 855 |
JavaScript | 3 | 18 | 32 | 68 |
CSS | 2 | 1 | 4 | 6 |
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 code | 0.21 |
Average class complexity | 3.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 59 | |
▷ Static methods | 2 | 3.39% |
▷ Public methods | 50 | 84.75% |
▷ Protected methods | 4 | 6.78% |
▷ Private methods | 5 | 8.47% |
Functions | 26 | |
▷ Named functions | 25 | 96.15% |
▷ Anonymous functions | 1 | 3.85% |
Constants | 10 | |
▷ Global constants | 8 | 80.00% |
▷ Class constants | 2 | 20.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin