Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼8.06ms] Passed 4 tests
Analyzing server-side resources used by DHL Ecommerce APAC
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.47 ▼9.88 |
Dashboard /wp-admin | 3.31 ▼0.03 | 50.46 ▼11.92 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 52.48 ▲0.21 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 93.84 ▼10.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.63 ▲0.50 |
Server storage [IO: ▲1.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DHL Ecommerce APAC
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.25 ▲0.02 | 1.77 ▲0.01 | 43.43 ▼5.19 |
Dashboard /wp-admin | 2,201 ▲24 | 5.53 ▼0.10 | 85.85 ▼12.89 | 38.05 ▼2.72 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.02 | 40.53 ▼2.75 | 36.91 ▼0.90 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.12 ▼0.49 | 663.26 ▲17.56 | 67.55 ▲15.31 |
Media Library /wp-admin/upload.php | 1,406 ▲9 | 4.18 ▼0.02 | 94.60 ▼8.63 | 43.50 ▼0.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: There are too many tags (13 tag instead of maximum 10)
- Donate link: Invalid URI found ("#")
- Screenshots: Please add images for these screenshots: #1 (Here, you can configure your account details.), #2 (You can add your Pickup account and set defaults here.), #3 (From here, you can create labels for orders as well as edit and cancel labels.)
dhl-ecommerce-apac/dhl-ecommerce-apac.php 92% from 13 tests
The entry point to "DHL Ecommerce APAC" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.7" instead of "3.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin10,565 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 1,482 | 3,418 | 7,158 |
PHP | 9 | 835 | 524 | 3,151 |
CSS | 1 | 38 | 9 | 196 |
SVG | 1 | 0 | 0 | 60 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 147)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 56.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 161.00 |
Average method complexity | 9.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 147.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 46 | |
▷ Static methods | 1 | 2.17% |
▷ Public methods | 42 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 8.70% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.52MB with 0.37MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 113.88KB | 31.44KB | ▼ 72.40% |
screenshot-4.png | 89.10KB | 25.65KB | ▼ 71.22% |
screenshot-3.png | 190.72KB | 49.52KB | ▼ 74.04% |
screenshot-2.png | 136.07KB | 38.74KB | ▼ 71.53% |