Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.64MB] [CPU: ▼30.39ms] Passed 4 tests
A check of server-side resources used by DataPlans eSIMs for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 40.10 ▲0.82 |
Dashboard /wp-admin | 3.30 ▼0.00 | 24.91 ▼25.78 |
Posts /wp-admin/edit.php | 3.30 ▼0.05 | 29.06 ▼24.26 |
Add New Post /wp-admin/post-new.php | 3.30 ▼2.58 | 26.74 ▼65.79 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 27.97 ▼5.74 |
Settings /wp-admin/admin.php?page=dataplans | 3.30 | 26.66 |
Order History /wp-admin/admin.php?page=dpio-history | 3.30 | 29.74 |
Server storage [IO: ▲2.47MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 86 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
dpio_options |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for DataPlans eSIMs for WooCommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲142 | 13.62 ▼0.91 | 5.28 ▲3.54 | 42.56 ▲1.11 |
Dashboard /wp-admin | 2,214 ▲43 | 4.99 ▼0.67 | 87.84 ▼2.29 | 72.59 ▲27.46 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 2.35 ▲0.38 | 34.49 ▼4.95 | 33.49 ▼0.61 |
Add New Post /wp-admin/post-new.php | 1,554 ▲26 | 23.24 ▼0.00 | 629.76 ▼49.28 | 130.31 ▲75.68 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.54 ▲0.34 | 106.42 ▼5.02 | 84.84 ▲42.79 |
Settings /wp-admin/admin.php?page=dataplans | 877 | 1.90 | 26.93 | 33.19 |
Order History /wp-admin/admin.php?page=dpio-history | 1,004 | 2.67 | 46.75 | 28.66 |
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
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/dataplans-esims-for-woocommerce/admin/class-dataplans-admin.php+432
Undefined index: class
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- dpio_options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dpio-history
- > Notice in wp-content/plugins/dataplans-esims-for-woocommerce/admin/class-dataplans-admin.php+432
Undefined index: class
- > GET request to /wp-admin/admin.php?page=dataplans
- > Notice in wp-content/plugins/dataplans-esims-for-woocommerce/admin/class-dataplans-admin.php+574
Undefined index: balancelimit_alert
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/dataplans-esims-for-woocommerce/public/partials/dataplans-public-display.php
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'DataPlansObject' not found in wp-content/plugins/dataplans-esims-for-woocommerce/vendor/dataplans/dataplans-php/lib/DataPlans/Resource/DataPlansApiResource.php:3
- > PHP Fatal error
Uncaught Error: Class 'DPWC_DataPlansApiResource' not found in wp-content/plugins/dataplans-esims-for-woocommerce/vendor/dataplans/dataplans-php/lib/DataPlans/DataPlansRegion.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dataplans-esims-for-woocommerce/vendor/dataplans/dataplans-php/tests/DataPlans/TestConfig.php:15
- > PHP Fatal error
Uncaught Error: Class 'DPWC_DataPlansApiResource' not found in wp-content/plugins/dataplans-esims-for-woocommerce/vendor/dataplans/dataplans-php/lib/DataPlans/DataPlansCountry.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dataplans-esims-for-woocommerce/vendor/dataplans/dataplans-php/tests/DataPlans/TestConfig.php:15
- > PHP Fatal error
Uncaught Error: Class 'DPWC_DataPlansApiResource' not found in wp-content/plugins/dataplans-esims-for-woocommerce/vendor/dataplans/dataplans-php/lib/DataPlans/DataPlansOperator.php:2
- > PHP Fatal error
Uncaught Error: Class 'DPWC_DataPlansApiResource' not found in wp-content/plugins/dataplans-esims-for-woocommerce/vendor/dataplans/dataplans-php/lib/DataPlans/DataPlansPurchase.php:2
- > PHP Fatal error
Uncaught Error: Class 'DPWC_DataPlansApiResource' not found in wp-content/plugins/dataplans-esims-for-woocommerce/vendor/dataplans/dataplans-php/lib/DataPlans/DataPlansPlan.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dataplans-esims-for-woocommerce/vendor/dataplans/dataplans-php/tests/DataPlans/TestConfig.php:15
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/dataplans-esims-for-woocommerce/vendor/dataplans/dataplans-php/tests/DataPlans/TestConfig.php:15
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=dpio-history
- > Network (severe)
wp-content/plugins/dataplans-esims-for-woocommerce/admin/images/sort_both.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=dpio-history
- > Network (severe)
wp-content/plugins/dataplans-esims-for-woocommerce/admin/images/sort_desc.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
10 plugin tags: woo, virtual, sim, digital, travel...
dataplans-esims-for-woocommerce/dataplans.php 85% from 13 tests
"DataPlans eSIMs for WooCommerce" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("dataplans-esims-for-woocommerce.php" instead of "dataplans.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin2,758 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 41 | 539 | 1,267 | 1,962 |
JavaScript | 3 | 12 | 67 | 196 |
Sass | 1 | 31 | 12 | 176 |
CSS | 3 | 2 | 4 | 156 |
JSON | 13 | 0 | 0 | 101 |
YAML | 2 | 14 | 0 | 85 |
Markdown | 2 | 28 | 0 | 42 |
XML | 2 | 3 | 0 | 40 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 44 | |
▷ Abstract classes | 1 | 2.27% |
▷ Concrete classes | 43 | 97.73% |
▷ Final classes | 1 | 2.33% |
Methods | 160 | |
▷ Static methods | 27 | 16.88% |
▷ Public methods | 135 | 84.38% |
▷ Protected methods | 15 | 9.38% |
▷ Private methods | 10 | 6.25% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 28 | |
▷ Global constants | 10 | 35.71% |
▷ Class constants | 18 | 64.29% |
▷ Public constants | 18 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 2.21MB with 0.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/menu_icon.png | 0.58KB | 0.65KB | 0.00% |
assets/screenshot-2.png | 515.62KB | 159.76KB | ▼ 69.02% |
admin/img/menu_icon_colored.png | 0.57KB | 0.62KB | 0.00% |
assets/screenshot-1.png | 991.75KB | 179.70KB | ▼ 81.88% |
assets/banner-772x250.png | 208.75KB | 60.44KB | ▼ 71.05% |