Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.81ms] Passed 4 tests
Analyzing server-side resources used by ClickShip
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.11 ▼3.25 |
Dashboard /wp-admin | 3.35 ▲0.04 | 49.63 ▼7.11 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 54.17 ▲6.55 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.20 ▼15.21 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.69 ▲2.34 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
ClickShip: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲35 | 14.35 ▼0.21 | 1.67 ▼0.20 | 43.39 ▲0.58 |
Dashboard /wp-admin | 2,199 ▲25 | 5.62 ▼0.06 | 92.38 ▲0.14 | 40.81 ▼0.31 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.01 ▲0.00 | 39.84 ▲3.30 | 38.48 ▲2.34 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.33 ▲0.08 | 672.78 ▼30.36 | 54.86 ▲2.38 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.18 ▼0.13 | 98.10 ▼16.95 | 46.36 ▼1.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/clickship/admin/clickship-requirements-error.php:11
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/clickship/includes/class-clickship-shipping.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: shipping methods, advanced shipping, woocommerce shipping, shipping, woocommerce...
clickship/clickship.php Passed 13 tests
The main PHP file in "ClickShip" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
56 characters long description:
We provide shipping rates at checkout to your customers.
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
No dangerous file extensions were detected351 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 115 | 593 | 351 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.59MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 9.30KB | 3.94KB | ▼ 57.62% |
assets/screenshot-2.png | 308.69KB | 121.07KB | ▼ 60.78% |
assets/screenshot-3.png | 140.79KB | 53.25KB | ▼ 62.18% |
assets/icon-256x256.png | 5.19KB | 2.70KB | ▼ 47.93% |
assets/screenshot-1.png | 136.99KB | 53.83KB | ▼ 60.71% |