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: ▼153.99ms] Passed 4 tests
Analyzing server-side resources used by shipmendo - Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 27.09 ▼8.22 |
Dashboard /wp-admin | 3.07 ▲0.00 | 34.93 ▼18.33 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 37.71 ▼2.49 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 74.21 ▼586.66 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 25.26 ▼2.75 |
Server storage [IO: ▲0.26MB] [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: 31 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
shipmendo - Lite: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲78 | 15.99 ▲0.33 | 5.00 ▼1.04 | 76.08 ▼10.64 |
Dashboard /wp-admin | 2,942 ▲43 | 6.13 ▲0.03 | 116.54 ▼25.27 | 167.81 ▼31.39 |
Posts /wp-admin/edit.php | 2,749 ▲9 | 3.24 ▲0.00 | 65.11 ▼4.75 | 138.37 ▼9.89 |
Add New Post /wp-admin/post-new.php | 3,743 ▲50 | 18.81 ▲3.37 | 421.93 ▼23.73 | 158.85 ▼7.66 |
Media Library /wp-admin/upload.php | 1,761 ▲9 | 5.52 ▼0.01 | 133.61 ▼7.98 | 181.92 ▼1.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests 75% 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 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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WC_Email' not found in wp-content/plugins/wc-shipmendo-lite/emails/shipped-order.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wc-shipmendo-lite/shipmendo-lite.php 77% from 13 tests
The primary PHP file in "shipmendo - Lite" version 1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("5.6" instead of "5.5")
- Main file name: Name the main plugin file the same as the plugin slug ("wc-shipmendo-lite.php" instead of "shipmendo-lite.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin766 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 1 | 45 | 0 | 250 |
CSS | 1 | 4 | 1 | 241 |
PO File | 1 | 59 | 78 | 132 |
SVG | 3 | 0 | 2 | 101 |
PHP | 7 | 0 | 6 | 24 |
JavaScript | 1 | 3 | 1 | 18 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
13 PNG files occupy 0.19MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/shipment-tracking.png | 1.98KB | 0.67KB | ▼ 65.94% |
assets/images/up-arrow.png | 12.49KB | 5.93KB | ▼ 52.49% |
assets/images/shipmendo-small-icon.png | 2.71KB | 0.27KB | ▼ 90.14% |
assets/images/shipmendo-transparent-logo.png | 9.98KB | 6.16KB | ▼ 38.31% |
assets/images/grilabs-logo.png | 9.43KB | 3.27KB | ▼ 65.26% |