Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼141.10ms] Passed 4 tests
An overview of server-side resources used by EasyShipper - EasyPost Integration for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 38.01 ▲15.91 |
Dashboard /wp-admin | 3.06 ▲0.01 | 43.97 ▼2.67 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 45.96 ▼0.11 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 89.93 ▼560.78 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 33.57 ▼0.83 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for EasyShipper - EasyPost Integration for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲82 | 16.19 ▲0.69 | 8.55 ▼0.54 | 50.77 ▼1.19 |
Dashboard /wp-admin | 2,967 ▲33 | 5.92 ▼0.04 | 137.95 ▼8.29 | 113.25 ▼4.95 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.02 | 67.10 ▲4.46 | 86.34 ▼13.66 |
Add New Post /wp-admin/post-new.php | 1,500 ▼183 | 18.85 ▲0.06 | 377.94 ▼2.68 | 110.72 ▲1.96 |
Media Library /wp-admin/upload.php | 1,810 ▲6 | 5.02 ▼0.02 | 156.50 ▼15.47 | 121.27 ▼3.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 34× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'EasyPost\\Resource' not found in wp-content/plugins/easyshipper/lib/easypost-php/lib/EasyPost/Rate.php:5
- > PHP Fatal error
Uncaught Error: Class 'EasyPost\\Resource' not found in wp-content/plugins/easyshipper/lib/easypost-php/lib/EasyPost/Batch.php:5
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/easyshipper/lib/easypost-php/examples/scanforms.php on line 3
- > PHP Parse error
syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/easyshipper/easypost_shipping.php on line 250
- > PHP Fatal error
Uncaught Error: Class 'EasyPost\\Resource' not found in wp-content/plugins/easyshipper/lib/easypost-php/lib/EasyPost/CustomsItem.php:5
- > PHP Fatal error
Uncaught Error: Class 'EasyPost\\Resource' not found in wp-content/plugins/easyshipper/lib/easypost-php/lib/EasyPost/Refund.php:5
- > PHP Warning
require_once(../vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/easyshipper/lib/easypost-php/examples/refunds.php on line 3
- > PHP Fatal error
Cannot use 'Object' as class name as it is reserved in wp-content/plugins/easyshipper/lib/easypost-php/lib/EasyPost/Object.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'EasyPost\\Resource' not found in wp-content/plugins/easyshipper/lib/easypost-php/lib/EasyPost/Address.php:5
- > PHP Fatal error
Cannot use 'Object' as class name as it is reserved in wp-content/plugins/easyshipper/lib/easypost-php/lib/EasyPost/Object.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% 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
4 plugin tags: easypost, free easypost integration, woocommerce, shipping
easyshipper/easyshipper.php 92% from 13 tests
The primary PHP file in "EasyShipper - EasyPost Integration for WooCommerce" version 0.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Git Repository: There should be no Git repositories present in your plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin2,054 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 33 | 474 | 128 | 1,921 |
Markdown | 2 | 20 | 0 | 90 |
JSON | 1 | 0 | 0 | 30 |
XML | 1 | 2 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 8.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 3 | 15.00% |
▷ Concrete classes | 17 | 85.00% |
▷ Final classes | 0 | 0.00% |
Methods | 125 | |
▷ Static methods | 68 | 54.40% |
▷ Public methods | 115 | 92.00% |
▷ Protected methods | 5 | 4.00% |
▷ Private methods | 5 | 4.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
There were not PNG files found in your plugin