Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.25ms] Passed 4 tests
This is a short check of server-side resources used by Potent Donations for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 34.75 ▼5.12 |
Dashboard /wp-admin | 3.45 ▲0.10 | 68.19 ▲10.31 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.37 ▼2.28 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 83.24 ▼11.36 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 35.56 ▲1.77 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
hm_wcdon_first_activate |
can_compress_scripts |
Browser metrics Passed 4 tests
Potent Donations for WooCommerce: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲55 | 14.28 ▼0.04 | 1.94 ▲0.39 | 38.70 ▼0.69 |
Dashboard /wp-admin | 2,195 ▲21 | 5.55 ▼0.02 | 79.90 ▼5.74 | 39.26 ▼3.79 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.04 | 33.90 ▼3.81 | 33.07 ▼5.25 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.15 ▲0.19 | 657.11 ▲1.31 | 55.54 ▼5.81 |
Media Library /wp-admin/upload.php | 1,400 ▲9 | 4.39 ▲0.17 | 93.27 ▼0.99 | 40.76 ▼4.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- hm_wcdon_first_activate
- widget_theysaidso_widget
Smoke tests 75% from 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 50% from 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
Please fix the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/donations-for-woocommerce/admin.php:4
- > PHP Notice
Undefined variable: potent_slug in wp-content/plugins/donations-for-woocommerce/plugin-credit.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/donations-for-woocommerce/donations-for-woocommerce.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/donations-for-woocommerce/plugin-credit.php:10
- > PHP Fatal error
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 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("")
donations-for-woocommerce/donations-for-woocommerce.php 92% from 13 tests
Analyzing the main PHP file in "Potent Donations for WooCommerce" version 1.1.11
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/lang" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected312 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 42 | 67 | 296 |
YAML | 1 | 2 | 0 | 10 |
CSS | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 25 | |
▷ Named functions | 24 | 96.00% |
▷ Anonymous functions | 1 | 4.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wp_zone_logo.png | 2.01KB | 2.14KB | 0.00% |