Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼4.39ms] Passed 4 tests
An overview of server-side resources used by Order Tip for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.46 ▼2.88 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.65 ▼3.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 54.28 ▲2.41 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 89.09 ▼5.32 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.89 ▼5.84 |
Server storage [IO: ▲0.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Order Tip for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.19 ▼1.23 | 1.76 ▼0.11 | 41.41 ▲1.40 |
Dashboard /wp-admin | 2,203 ▲21 | 5.84 ▼0.02 | 104.36 ▼3.68 | 39.06 ▼0.19 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.03 | 40.66 ▼0.75 | 35.33 ▼0.84 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 22.99 ▼0.10 | 641.89 ▼16.66 | 59.46 ▲2.52 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.21 ▼0.03 | 97.46 ▼11.97 | 46.24 ▼0.32 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
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
Even though no errors were found, this is by no means an exhaustive test
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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: ecommerce, woocommerce, donation, tip, order
order-tip-woo/order-tip-for-woocommerce.php 85% from 13 tests
The primary PHP file in "Order Tip for WooCommerce" version 1.3.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("order-tip-woo.php" instead of "order-tip-for-woocommerce.php")
- Requires at least: Required version must match the one declared in readme.txt ("3.0" instead of "3.0.0")
Code Analysis Passed 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
Success! There were no dangerous files found in this plugin5,694 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 7 | 680 | 919 | 2,162 |
CSS | 5 | 61 | 82 | 1,657 |
PHP | 13 | 314 | 283 | 1,234 |
JavaScript | 4 | 168 | 101 | 641 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 18.12 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 4.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 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 | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
6 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/css/jqueryui-1.12.1/images/ui-icons_cc0000_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |
admin/assets/css/jqueryui-1.12.1/images/ui-icons_777777_256x240.png | 6.94KB | 4.18KB | ▼ 39.78% |
admin/assets/css/jqueryui-1.12.1/images/ui-icons_555555_256x240.png | 6.91KB | 4.18KB | ▼ 39.47% |
admin/assets/css/jqueryui-1.12.1/images/ui-icons_444444_256x240.png | 6.92KB | 4.18KB | ▼ 39.61% |
admin/assets/css/jqueryui-1.12.1/images/ui-icons_777620_256x240.png | 4.57KB | 4.18KB | ▼ 8.43% |