Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.86ms] Passed 4 tests
This is a short check of server-side resources used by Emissary for Woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 47.89 ▲10.68 |
Dashboard /wp-admin | 3.33 ▲0.02 | 48.70 ▼0.30 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.33 ▼4.15 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.62 ▼9.06 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.42 ▲2.07 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Emissary for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.17 ▼0.50 | 1.73 ▲0.10 | 46.44 ▲6.41 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▼0.06 | 94.82 ▼4.58 | 41.48 ▼3.05 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.02 | 35.73 ▼6.48 | 35.49 ▼2.26 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.97 ▼0.13 | 651.86 ▲9.98 | 58.95 ▼2.84 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▼0.01 | 104.55 ▲9.06 | 43.40 ▼1.75 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/emissary-for-woocommerce/public/templates/cart-shipping.php on line 14
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/emissary-for-woocommerce/admin/emissary-admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/emissary-for-woocommerce/admin/emissary-admin.php:466
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/emissary-for-woocommerce/admin/emissary-admin.php on line 3
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/emissary-for-woocommerce/admin/emissary-admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/emissary-for-woocommerce/emissary.php:14
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/emissary-for-woocommerce/public/templates/cart-shipping.php on line 14
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/emissary-for-woocommerce/public/templates/cart-shipping.php on line 14
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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: paqueteras, logstica, emissary, woocommerce, envos...
emissary-for-woocommerce/emissary.php 77% from 13 tests
"Emissary for Woocommerce" version 2.2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 228 characters long)
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("emissary-for-woocommerce.php" instead of "emissary.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,335 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 96 | 52 | 723 |
CSS | 2 | 33 | 7 | 362 |
JSON | 2 | 0 | 0 | 140 |
JavaScript | 2 | 24 | 1 | 110 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 5 | 38.46% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 10 | 76.92% |
▷ Anonymous functions | 3 | 23.08% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/FEDEX.png | 2.21KB | 2.21KB | 0.00% |
admin/images/UPS.png | 2.51KB | 2.50KB | 0.23% |
admin/images/DOSTAVISTA.png | 2.51KB | 2.50KB | ▼ 0.62% |
admin/images/DHL.png | 2.96KB | 2.96KB | 0.00% |