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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.00ms] Passed 4 tests
An overview of server-side resources used by Virtue - Charity Donations UK
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.03 | 25.50 ▼13.71 |
Dashboard /wp-admin | 3.35 ▲0.05 | 43.93 ▼4.49 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 44.24 ▼2.49 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 79.57 ▼15.30 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.25 ▼1.24 |
Virtue /wp-admin/options-general.php?page=virtue-for-woocommerce | 3.26 | 30.42 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Virtue - Charity Donations UK
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,471 ▼264 | 13.20 ▼1.16 | 0.44 ▼1.59 | 16.21 ▼30.43 |
Dashboard /wp-admin | 2,212 ▲23 | 5.86 ▲0.91 | 102.79 ▼23.07 | 38.97 ▼6.28 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.04 ▲0.05 | 40.05 ▼0.35 | 33.93 ▼1.17 |
Add New Post /wp-admin/post-new.php | 1,533 ▲14 | 23.14 ▼0.01 | 605.63 ▼59.44 | 54.98 ▲3.09 |
Media Library /wp-admin/upload.php | 1,394 ▲6 | 4.30 ▲0.07 | 97.79 ▼0.10 | 45.56 ▲1.22 |
Virtue /wp-admin/options-general.php?page=virtue-for-woocommerce | 789 | 2.05 | 28.14 | 25.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/virtue-for-woocommerce/public/partials/post-purchase-widget.php
- > /wp-content/plugins/virtue-for-woocommerce/public/partials/product-page-widget.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/virtue-for-woocommerce/admin/partials/virtue-woocommerce-admin-notice.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/virtue-for-woocommerce/admin/partials/virtue-woocommerce-admin-settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/virtue-for-woocommerce/public/partials/cart-page-widget.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: donations, donate button, tree-planting, charity, checkout donations
virtue-for-woocommerce/virtue-woocommerce.php 85% from 13 tests
"Virtue - Charity Donations UK" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("virtue-for-woocommerce.php" instead of "virtue-woocommerce.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 158 characters long)
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 plugin620 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 236 | 722 | 599 |
CSS | 2 | 0 | 6 | 15 |
JavaScript | 2 | 4 | 6 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 6.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 2 | 3.85% |
▷ Public methods | 45 | 86.54% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 13.46% |
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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.57MB with 0.39MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/virtue-hero.png | 586.94KB | 184.97KB | ▼ 68.49% |