Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.53ms] Passed 4 tests
Server-side resources used by Ship Per Product
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 37.84 ▼0.39 |
Dashboard /wp-admin | 3.31 ▼0.04 | 42.45 ▼19.57 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 41.36 ▼3.46 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.44 ▼7.95 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.56 ▼3.12 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ship Per Product
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.17 ▼0.56 | 1.75 ▲0.21 | 46.05 ▲5.43 |
Dashboard /wp-admin | 2,192 ▲15 | 5.53 ▼0.05 | 80.97 ▼21.33 | 38.31 ▼6.31 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.04 | 34.78 ▼4.05 | 35.23 ▼3.11 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.41 ▲0.36 | 648.14 ▼23.81 | 53.72 ▲3.42 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.19 ▲0.00 | 96.11 ▼9.70 | 44.06 ▼2.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #5, #6, #7, #8, #9 in ship-per-product/assets to your readme.txt
ship-per-product/ship-per-product.php Passed 13 tests
"Ship Per Product" version 2.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
93 characters long description:
Per product shipping allows to add shipping costs for individual, based on customer location.
Code Analysis 97% from 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 detected3,602 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 248 | 468 | 2,097 |
CSS | 3 | 31 | 1 | 711 |
JavaScript | 3 | 32 | 41 | 614 |
PO File | 1 | 74 | 88 | 180 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 126.67 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 222.00 |
Average method complexity | 9.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 13 | 29.55% |
▷ Public methods | 44 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/images/icon.png | 9.15KB | 0.80KB | ▼ 91.21% |