Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.23ms] Passed 4 tests
Server-side resources used by Woo Cashback
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.11 | 41.78 ▼5.76 |
Dashboard /wp-admin | 3.41 ▲0.10 | 54.39 ▲0.64 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 49.57 ▼3.93 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.10 | 86.59 ▼11.88 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 40.34 ▲2.39 |
Server storage [IO: ▲0.89MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Woo Cashback: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲197 | 13.48 ▼1.11 | 11.87 ▲9.85 | 47.08 ▲3.16 |
Dashboard /wp-admin | 2,207 ▲27 | 5.50 ▼0.17 | 91.86 ▼2.94 | 46.02 ▲3.64 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 2.04 ▲0.08 | 38.39 ▼0.80 | 35.62 ▼1.02 |
Add New Post /wp-admin/post-new.php | 1,540 ▲12 | 23.06 ▲0.16 | 678.89 ▲29.10 | 62.86 ▲7.93 |
Media Library /wp-admin/upload.php | 1,412 ▲18 | 4.23 ▲0.01 | 106.72 ▼2.32 | 47.13 ▲2.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 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 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: user wallet, woo, woocommerce, wallet, cash back...
woo-cashback/woo-cashback.php Passed 13 tests
The main file in "Woo Cashback" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
77 characters long description:
The plugin allows you to cashback to the customers on purchase on your store.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,157 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 155 | 163 | 822 |
CSS | 6 | 27 | 70 | 279 |
JavaScript | 3 | 1 | 5 | 56 |
PHP code Passed 2 tests
An overview 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.27 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
13 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
popup/style1/images/border.png | 0.07KB | 0.10KB | 0.00% |
popup/style4/images/border2.png | 0.11KB | 0.16KB | 0.00% |
assets/icon-128x128.png | 11.64KB | 5.47KB | ▼ 53.01% |
assets/icon-256x256.png | 31.14KB | 13.01KB | ▼ 58.22% |
popup/style5/images/controls.png | 1.98KB | 2.04KB | 0.00% |