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.02MB] [CPU: ▲0.34ms] Passed 4 tests
Server-side resources used by Cart Total Rounding by TheCartPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.09 ▼2.41 |
Dashboard /wp-admin | 3.32 ▲0.01 | 49.12 ▲1.25 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 47.05 ▲1.68 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.89 ▲0.85 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 39.89 ▲5.60 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Cart Total Rounding by TheCartPress
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,857 ▲122 | 13.36 ▼1.02 | 4.74 ▲2.75 | 43.31 ▼2.38 |
Dashboard /wp-admin | 2,263 ▲75 | 5.84 ▼0.07 | 108.81 ▲7.33 | 41.48 ▲2.56 |
Posts /wp-admin/edit.php | 2,145 ▲56 | 2.00 ▲0.03 | 37.18 ▼2.28 | 32.42 ▲0.56 |
Add New Post /wp-admin/post-new.php | 1,554 ▲12 | 23.26 ▲5.13 | 668.66 ▲38.09 | 54.13 ▼3.33 |
Media Library /wp-admin/upload.php | 1,448 ▲63 | 4.30 ▲0.11 | 96.85 ▼1.05 | 43.03 ▼1.79 |
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
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
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 | 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
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: woocommerce, coupon, tcp, thecartpress
tcp-cart-total-rounding/tcp-cart-total-rounding.php Passed 13 tests
Analyzing the main PHP file in "Cart Total Rounding by TheCartPress" version 1.2.0
52 characters long description:
Round off Woocommerce Cart Total to nearest 5 cents.
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
No dangerous file extensions were detected1,148 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 98 | 268 | 1,148 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 10.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 24 | 63.16% |
▷ Anonymous functions | 14 | 36.84% |
Constants | 5 | |
▷ Global constants | 1 | 20.00% |
▷ Class constants | 4 | 80.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected