Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.54ms] Passed 4 tests
A check of server-side resources used by ChitChats Shipping for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.72 ▲1.33 |
Dashboard /wp-admin | 3.41 ▲0.07 | 45.65 ▼17.42 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 49.47 ▼0.35 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 90.05 ▼3.26 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 34.54 ▼1.12 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ChitChats Shipping for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.39 ▲0.04 | 1.80 ▼0.63 | 49.90 ▲7.65 |
Dashboard /wp-admin | 2,195 ▲18 | 5.48 ▼0.14 | 83.27 ▼17.87 | 39.79 ▼2.76 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.13 ▲0.17 | 35.12 ▲1.09 | 37.19 ▲1.53 |
Add New Post /wp-admin/post-new.php | 1,526 ▼1 | 23.78 ▲0.84 | 617.18 ▼68.06 | 57.27 ▲5.57 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▼0.02 | 93.64 ▼12.87 | 41.77 ▼2.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 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 Passed 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
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
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
wc-chitchats-shipping/wc-chitchats-shipping.php Passed 13 tests
"ChitChats Shipping for WooCommerce" version 1.5.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
Displays live ChitChats shipping rates at cart / checkout
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin4,581 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 1,013 | 237 | 4,581 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 29.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 171.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 19 | |
▷ Abstract classes | 5 | 26.32% |
▷ Concrete classes | 14 | 73.68% |
▷ Final classes | 0 | 0.00% |
Methods | 293 | |
▷ Static methods | 2 | 0.68% |
▷ Public methods | 176 | 60.07% |
▷ Protected methods | 111 | 37.88% |
▷ Private methods | 6 | 2.05% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/1TeamSoftware-logo.png | 14.55KB | 4.50KB | ▼ 69.05% |
assets/images/1TeamSoftware-icon.png | 0.59KB | 0.75KB | 0.00% |