Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼22.74ms] Passed 4 tests
An overview of server-side resources used by eShip
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.98 ▼4.68 |
Dashboard /wp-admin | 3.33 ▼0.01 | 44.38 ▼19.90 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 42.75 ▼5.99 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 79.45 ▼60.40 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 45.65 ▲11.55 |
Server storage [IO: ▲5.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 79 new files
Database: 2 new tables, 6 new options
New tables |
---|
wp_eship_dimensions |
wp_eship_data |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for eShip
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲46 | 14.17 ▼0.18 | 1.59 ▼0.06 | 41.73 ▼3.46 |
Dashboard /wp-admin | 2,195 ▲21 | 5.57 ▼0.01 | 81.60 ▼5.55 | 38.93 ▼3.74 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.95 ▼0.08 | 34.32 ▼5.94 | 34.66 ▼3.50 |
Add New Post /wp-admin/post-new.php | 1,529 ▼22 | 23.10 ▲4.91 | 636.02 ▲43.12 | 48.74 ▼10.70 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.23 ▲0.05 | 143.69 ▲48.91 | 46.78 ▲5.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/eship/admin/partials/connection/connection.php
- > /wp-content/plugins/eship/admin/partials/connection/_form_connection.php
- > /wp-content/plugins/eship/admin/partials/buttons_modals/modal_custom.php
- > /wp-content/plugins/eship/admin/partials/modals/modal_bulk_eship.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/eship/admin/partials/buttons_modals/shipment_sheet.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/eship/admin/partials/connection/dashboard_connection.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/eship/admin/partials/buttons_modals/buttons.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4 in eship/assets to your readme.txt
eship/eship.php 92% from 13 tests
The main PHP script in "eShip" version 1.0.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- 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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin14,738 lines of code in 50 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 9,552 |
PHP | 31 | 626 | 1,081 | 4,067 |
JavaScript | 9 | 52 | 65 | 888 |
Markdown | 2 | 56 | 0 | 151 |
CSS | 5 | 19 | 24 | 80 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.18 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 173.00 |
Average method complexity | 3.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 167 | |
▷ Static methods | 2 | 1.20% |
▷ Public methods | 121 | 72.46% |
▷ Protected methods | 20 | 11.98% |
▷ Private methods | 26 | 15.57% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 11 | |
▷ Global constants | 5 | 45.45% |
▷ Class constants | 6 | 54.55% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.27MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/paqueterias/moova.png | 31.33KB | 15.34KB | ▼ 51.02% |
admin/img/paqueterias/dhl.png | 5.76KB | 3.51KB | ▼ 38.98% |
admin/img/eshipw.png | 9.93KB | 4.60KB | ▼ 53.72% |
admin/img/paqueterias/usps.png | 18.35KB | 8.10KB | ▼ 55.84% |
admin/img/woocommerce.png | 17.00KB | 8.43KB | ▼ 50.43% |