Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.78ms] Passed 4 tests
Analyzing server-side resources used by Ship To eCourier
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 36.64 ▼6.36 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.53 ▼2.66 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 49.13 ▲1.93 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 97.77 ▲7.81 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.35 ▲3.96 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 53 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_ste_shipped_orders |
New WordPress options |
---|
widget_recent-posts |
ste_installed |
widget_recent-comments |
ste_version |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
ste_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ship To eCourier
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲105 | 13.23 ▼0.93 | 1.54 ▼0.31 | 39.20 ▼4.45 |
Dashboard /wp-admin | 2,249 ▲61 | 5.85 ▲0.04 | 95.24 ▼33.03 | 81.75 ▲21.14 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 1.98 ▼0.04 | 39.09 ▲2.00 | 34.78 ▼2.71 |
Add New Post /wp-admin/post-new.php | 1,552 ▲19 | 23.25 ▲0.05 | 710.43 ▲26.10 | 50.87 ▲3.96 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.27 ▲0.06 | 102.01 ▼1.21 | 77.21 ▲31.03 |
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
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_ste_shipped_orders
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-posts
- ste_version
- widget_theysaidso_widget
- ste_installed
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ship-to-ecourier/index.php
- > /wp-content/plugins/ship-to-ecourier/includes/Admin/index.php
- > /wp-content/plugins/ship-to-ecourier/includes/index.php
- > /wp-content/plugins/ship-to-ecourier/includes/Frontend/index.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ship-to-ecourier/includes/Frontend/views/form-parcel-tracker.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/ship-to-ecourier/includes/Admin/views/ste-booking-metabox-view.php:18
- > PHP Notice
Undefined variable: order_shipped in wp-content/plugins/ship-to-ecourier/includes/Admin/views/ste-booking-metabox-view.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ship-to-ecourier/includes/Admin/views/settings-view.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: ecourier-parcel, ecourier-booking, ecourier-parcel-booking, ship-to-ecourier, ecourier...
ship-to-ecourier/ship-to-ecourier.php 77% from 13 tests
The primary PHP file in "Ship To eCourier" version 1.1.1 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 175 characters long)
- Domain Path: The domain path folder does not exist ("/languages")
- Git Repository: Please do not include Git repositories in your plugin
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
No dangerous file extensions were detected14,631 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 1,842 | 10,510 | 10,764 |
PHP | 35 | 801 | 1,585 | 3,202 |
CSS | 2 | 50 | 19 | 384 |
Markdown | 1 | 66 | 0 | 181 |
JSON | 3 | 0 | 0 | 99 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 3.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 1 | 4.76% |
Methods | 178 | |
▷ Static methods | 22 | 12.36% |
▷ Public methods | 139 | 78.09% |
▷ Protected methods | 6 | 3.37% |
▷ Private methods | 33 | 18.54% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.00% |
Constants | 11 | |
▷ Global constants | 8 | 72.73% |
▷ Class constants | 3 | 27.27% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/menu_icon.png | 2.13KB | 1.06KB | ▼ 50.18% |