Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲1.54MB] [CPU: ▲6.91ms] Passed 4 tests
Analyzing server-side resources used by Tips & Donations for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.04 ▲1.57 | 47.61 ▲6.09 |
Dashboard /wp-admin | 4.84 ▲1.54 | 58.94 ▲10.88 |
Posts /wp-admin/edit.php | 4.95 ▲1.60 | 65.44 ▲22.56 |
Add New Post /wp-admin/post-new.php | 7.43 ▲1.55 | 92.32 ▼0.99 |
Media Library /wp-admin/upload.php | 4.74 ▲1.51 | 46.49 ▲11.65 |
Server storage [IO: ▲9.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 514 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_thegoodplugin_tips |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
thegoodplugin_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Tips & 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 / | 3,217 ▲446 | 20.66 ▲6.26 | 6.16 ▲3.78 | 28.81 ▼19.04 |
Dashboard /wp-admin | 2,545 ▲360 | 10.64 ▲4.74 | 204.78 ▲89.32 | 102.30 ▲56.29 |
Posts /wp-admin/edit.php | 2,432 ▲343 | 7.24 ▲5.21 | 98.84 ▲62.26 | 79.12 ▲42.90 |
Add New Post /wp-admin/post-new.php | 1,619 ▲86 | 19.92 ▼3.24 | 749.56 ▲74.48 | 39.16 ▼20.30 |
Media Library /wp-admin/upload.php | 1,568 ▲180 | 8.35 ▲3.91 | 125.35 ▲11.96 | 80.76 ▲33.01 |
Tips & Donations /wp-admin/crb_carbon_fields_container_thegoodplugin_opts.php | 26 | 0.44 | 0.09 | 14.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_thegoodplugin_tips
- This plugin does not fully uninstall, leaving 7 options in the database
- thegoodplugin_db_version
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/tips-donations-woo/public/partials/thegoodplugin-public-display.php
- > /wp-content/plugins/tips-donations-woo/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 120× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\File_Field' not found in wp-content/plugins/tips-donations-woo/vendor/htmlburger/carbon-fields/core/Field/Image_Field.php:11
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/tips-donations-woo/vendor/htmlburger/carbon-fields/templates/Container/widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Datastore' not found in wp-content/plugins/tips-donations-woo/vendor/htmlburger/carbon-fields/core/Datastore/Key_Value_Datastore.php:13
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Event\\PersistentListener' not found in wp-content/plugins/tips-donations-woo/vendor/htmlburger/carbon-fields/core/Event/SingleEventListener.php:5
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/tips-donations-woo/vendor/htmlburger/carbon-fields/core/Field/Multiselect_Field.php:13
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/tips-donations-woo/vendor/htmlburger/carbon-fields/core/Field/Broken_Field.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Scripts_Field' not found in wp-content/plugins/tips-donations-woo/vendor/htmlburger/carbon-fields/core/Field/Footer_Scripts_Field.php:9
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/tips-donations-woo/vendor/htmlburger/carbon-fields/core/Container/Condition/Current_User_ID_Condition.php:8
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/tips-donations-woo/vendor/htmlburger/carbon-fields/core/Container/Condition/User_Capability_Condition.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/tips-donations-woo/vendor/htmlburger/carbon-fields/templates/Container/common/options-page.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/crb_carbon_fields_container_thegoodplugin_opts.php
- > Network (severe)
wp-admin/crb_carbon_fields_container_thegoodplugin_opts.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 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
6 plugin tags: woocommerce, addon, tips, donation, tip...
tips-donations-woo/thegoodplugin.php 92% from 13 tests
The entry point to "Tips & Donations for WooCommerce" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("tips-donations-woo.php" instead of "thegoodplugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin30,542 lines of code in 448 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 181 | 5,359 | 8,739 | 13,626 |
PHP | 166 | 2,885 | 7,226 | 9,716 |
CSS | 11 | 433 | 1,158 | 2,359 |
PO File | 27 | 823 | 1,024 | 2,223 |
Sass | 49 | 370 | 0 | 1,945 |
JSON | 8 | 0 | 0 | 525 |
Markdown | 4 | 45 | 0 | 146 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 8.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 132 | |
▷ Abstract classes | 11 | 8.33% |
▷ Concrete classes | 121 | 91.67% |
▷ Final classes | 1 | 0.83% |
Methods | 950 | |
▷ Static methods | 107 | 11.26% |
▷ Public methods | 774 | 81.47% |
▷ Protected methods | 166 | 17.47% |
▷ Private methods | 10 | 1.05% |
Functions | 120 | |
▷ Named functions | 35 | 29.17% |
▷ Anonymous functions | 85 | 70.83% |
Constants | 37 | |
▷ Global constants | 12 | 32.43% |
▷ Class constants | 25 | 67.57% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-256x256.png | 14.16KB | 6.80KB | ▼ 51.98% |
assets/banner-772x250.png | 28.81KB | 11.92KB | ▼ 58.64% |