Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲0.60ms] Passed 4 tests
Analyzing server-side resources used by Easy Donation for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 45.53 ▲7.05 |
Dashboard /wp-admin | 3.41 ▲0.10 | 53.63 ▲5.63 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.17 ▲1.46 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 83.17 ▼9.62 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 39.41 ▲4.95 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Easy Donation for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲173 | 13.63 ▼0.95 | 5.54 ▲3.66 | 42.78 ▲2.21 |
Dashboard /wp-admin | 2,231 ▲40 | 5.83 ▲0.92 | 100.52 ▼12.49 | 38.37 ▼3.62 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.06 ▲0.06 | 36.85 ▲1.54 | 32.81 ▼1.89 |
Add New Post /wp-admin/post-new.php | 1,533 ▼2 | 17.68 ▼5.41 | 589.61 ▼78.16 | 57.11 ▲1.42 |
Media Library /wp-admin/upload.php | 1,410 ▲25 | 4.20 ▼0.06 | 94.28 ▼14.44 | 42.56 ▼0.34 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/easy-donation-for-woocommerce/public/partials/easy-donation-for-woocommerce-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Easy_Donation_For_Woocommerce' not found in wp-content/plugins/easy-donation-for-woocommerce/admin/partials/easy-donation-for-woocommerce-admin-display.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: woocommerce, donation, checkout, wordpress, tip
easy-donation-for-woocommerce/easy-donation-for-woocommerce.php Passed 13 tests
The principal PHP file in "Easy Donation for Woocommerce" v. 1.0.3 is loaded by WordPress automatically on each request
71 characters long description:
Allow customers to add Donation directly from WooCommerce checkout page
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
Success! There were no dangerous files found in this plugin492 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 155 | 549 | 416 |
CSS | 2 | 5 | 8 | 61 |
JavaScript | 3 | 9 | 54 | 15 |
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.21 |
Average class complexity | 5.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 3 | 8.57% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
There were not PNG files found in your plugin