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
Install script ran successfully
Server metrics [RAM: ▼1.80MB] [CPU: ▼58.84ms] Passed 4 tests
An overview of server-side resources used by Project Donations for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.26 | 6.32 ▼34.72 |
Dashboard /wp-admin | 2.22 ▼1.13 | 6.44 ▼59.16 |
Posts /wp-admin/edit.php | 2.22 ▼1.14 | 6.18 ▼43.02 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.67 | 6.57 ▼98.46 |
Media Library /wp-admin/upload.php | 2.22 ▼1.01 | 6.69 ▼27.08 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Project Donations for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.21 ▼1.18 | 4.71 ▲2.77 | 42.61 ▲3.39 |
Dashboard /wp-admin | 2,210 ▲19 | 4.86 ▼0.07 | 117.89 ▲2.58 | 42.54 ▼0.80 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.08 ▲0.04 | 37.88 ▼2.30 | 32.39 ▼4.15 |
Add New Post /wp-admin/post-new.php | 1,518 ▼1 | 17.53 ▼5.57 | 677.07 ▼11.04 | 60.20 ▼4.56 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.23 ▼0.05 | 101.62 ▼5.32 | 44.94 ▼0.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function is_single was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/project-donations-wc/includes/class-woocommerce.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_single() in wp-content/plugins/project-donations-wc/includes/class-project.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/project-donations-wc/admin/wc-admin-classes.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: projects, donation, woocommerce, product
project-donations-wc/project-donations-wc.php Passed 13 tests
Analyzing the main PHP file in "Project Donations for WooCommerce" version 1.5.5
92 characters long description:
Add project field to WooCommerce products, allow clients to link their purchase to a project
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,766 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 194 | 202 | 1,142 |
PO File | 3 | 253 | 274 | 568 |
Markdown | 2 | 20 | 0 | 49 |
CSS | 2 | 1 | 0 | 5 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review 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.44 |
Average class complexity | 39.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 31 | 62.00% |
▷ Public methods | 50 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin