Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼2.52ms] Passed 4 tests
A check of server-side resources used by Edipost integration for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 38.48 ▲1.20 |
Dashboard /wp-admin | 3.46 ▲0.16 | 47.66 ▲0.02 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 51.07 ▲0.33 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 84.75 ▼11.63 |
Media Library /wp-admin/upload.php | 3.39 ▲0.15 | 38.31 ▲3.48 |
EdiPost Integrasjon /wp-admin/options-general.php?page=edipost_woocommerce_connector | 3.33 | 32.71 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Edipost integration for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.35 ▼0.28 | 1.76 ▲0.17 | 43.77 ▼2.96 |
Dashboard /wp-admin | 2,201 ▲24 | 5.61 ▼0.05 | 84.93 ▼10.16 | 36.92 ▼8.08 |
Posts /wp-admin/edit.php | 2,109 ▲6 | 2.03 ▲0.04 | 37.23 ▼8.66 | 37.36 ▼2.21 |
Add New Post /wp-admin/post-new.php | 1,537 ▼1 | 23.65 ▲0.58 | 681.35 ▲57.05 | 53.94 ▼2.38 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.30 ▲0.14 | 96.88 ▼7.66 | 44.23 ▼0.66 |
EdiPost Integrasjon /wp-admin/options-general.php?page=edipost_woocommerce_connector | 892 | 2.05 | 24.00 | 30.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=edipost_woocommerce_connector
- > Notice in wp-content/plugins/edipost-woo/admin/class-ediwoo-admin.php+267
Trying to access array offset on value of type bool
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
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/edipost-woo/public/partials/ediwoo-public-display.php
- > /wp-content/plugins/edipost-woo/admin/partials/ediwoo-admin-display.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'EdipostService\\Client\\Builder\\PartyBuilder' not found in wp-content/plugins/edipost-woo/includes/php-rest-client/Client/Builder/ConsignorBuilder.php:7
- > PHP Fatal error
Uncaught Error: Class 'EdipostService\\Client\\Party' not found in wp-content/plugins/edipost-woo/includes/php-rest-client/Client/Consignor.php:6
- > PHP Fatal error
Uncaught Error: Class 'EdipostService\\Client\\Party' not found in wp-content/plugins/edipost-woo/includes/php-rest-client/Client/Consignee.php:6
- > PHP Fatal error
Uncaught Error: Class 'EdipostService\\ServiceConnection\\Communication' not found in wp-content/plugins/edipost-woo/includes/php-rest-client/Client/Consignment.php:6
- > PHP Fatal error
Uncaught Error: Class 'EdipostService\\ServiceConnection\\Communication' not found in wp-content/plugins/edipost-woo/includes/php-rest-client/Client/Party.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: woocommerce, schenker, bring, postnord, edipost...
edipost-woo/ediwoo.php 85% from 13 tests
This is the main PHP file of "Edipost integration for WooCommerce" version 1.3.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("edipost-woo.php" instead of "ediwoo.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 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,601 lines of code in 44 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 923 | 1,105 | 2,277 |
JavaScript | 4 | 101 | 89 | 262 |
CSS | 2 | 9 | 19 | 43 |
PO File | 1 | 3 | 0 | 19 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 6.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 36 | |
▷ Abstract classes | 1 | 2.78% |
▷ Concrete classes | 35 | 97.22% |
▷ Final classes | 0 | 0.00% |
Methods | 268 | |
▷ Static methods | 20 | 7.46% |
▷ Public methods | 222 | 82.84% |
▷ Protected methods | 4 | 1.49% |
▷ Private methods | 42 | 15.67% |
Functions | 7 | |
▷ Named functions | 4 | 57.14% |
▷ Anonymous functions | 3 | 42.86% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/cross.png | 1.09KB | 1.61KB | 0.00% |
admin/check.png | 1.18KB | 1.46KB | 0.00% |