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.01MB] [CPU: ▼10.57ms] Passed 4 tests
An overview of server-side resources used by Calculate Customer's Savings
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.43 ▼0.04 | 23.39 ▼18.30 |
Dashboard /wp-admin | 3.35 ▲0.00 | 46.89 ▼14.14 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 47.94 ▲5.97 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 89.38 ▼9.82 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 35.14 ▼0.01 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Calculate Customer's Savings
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,476 ▼295 | 13.35 ▼1.02 | 0.93 ▼0.99 | 15.16 ▼28.31 |
Dashboard /wp-admin | 2,209 ▲24 | 5.88 ▲0.00 | 96.41 ▼11.51 | 38.84 ▼5.78 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.04 | 40.45 ▼1.70 | 35.06 ▼0.76 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.08 ▼0.04 | 615.31 ▼38.78 | 64.06 ▲12.11 |
Media Library /wp-admin/upload.php | 1,382 ▼6 | 4.21 ▲0.03 | 99.38 ▼6.15 | 46.10 ▼0.73 |
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
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: orders, woocommerce, checkout, savings, cart
calculate-customers-savings/calculate-customers-savings.php 92% from 13 tests
The principal PHP file in "Calculate Customer's Savings" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "5.9")
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 detected187 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 54 | 212 | 187 |
PHP code Passed 2 tests
Analyzing 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.27 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin