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.08MB] [CPU: ▼15.29ms] Passed 4 tests
Server-side resources used by Give - Double the Donation
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 38.98 ▼4.10 |
Dashboard /wp-admin | 3.29 ▼0.02 | 30.98 ▼20.23 |
Posts /wp-admin/edit.php | 3.35 ▼0.00 | 35.26 ▼5.77 |
Add New Post /wp-admin/post-new.php | 5.51 ▼0.37 | 68.88 ▼31.04 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 33.05 ▼2.65 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 49 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
recovery_mode_email_last_sent |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Give - Double the Donation
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,457 ▼1,289 | 12.27 ▼1.99 | 1.85 ▲0.16 | 37.75 ▼7.63 |
Dashboard /wp-admin | 850 ▼1,327 | 1.36 ▼4.22 | 12.95 ▼90.47 | 21.13 ▼26.94 |
Posts /wp-admin/edit.php | 861 ▼1,239 | 1.12 ▼0.83 | 6.92 ▼34.46 | 20.31 ▼16.79 |
Add New Post /wp-admin/post-new.php | 587 ▼939 | 1.71 ▼22.04 | 24.90 ▼598.87 | 7.53 ▼53.00 |
Media Library /wp-admin/upload.php | 746 ▼651 | 1.71 ▼2.50 | 22.78 ▼73.75 | 22.61 ▼17.22 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- recovery_mode_email_last_sent
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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Interface 'Give\\ServiceProviders\\ServiceProvider' not found in wp-content/plugins/give-double-the-donation/src/DoubleTheDonation/AddonServiceProvider.php:21
- > PHP Fatal error
Uncaught Error: Class 'Give_Settings_Page' not found in wp-content/plugins/give-double-the-donation/src/DoubleTheDonation/SettingsPage.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: company matching donation, givewp, employer matching donations, employer matching, double the donation
give-double-the-donation/give-double-the-donation.php Passed 13 tests
The main file in "Give - Double the Donation" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
73 characters long description:
Easily integrate with the Double the Donation employer matching platform.
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 plugin1,168 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 28 | 309 | 721 | 1,125 |
JavaScript | 4 | 8 | 3 | 27 |
JSON | 2 | 0 | 0 | 12 |
Sass | 2 | 0 | 1 | 3 |
CSS | 2 | 1 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 7.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 35 | 46.67% |
▷ Public methods | 71 | 94.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.33% |
Functions | 7 | |
▷ Named functions | 1 | 14.29% |
▷ Anonymous functions | 6 | 85.71% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/DoubleTheDonation/resources/images/dtd-logo.png | 15.45KB | 15.45KB | 0.01% |
public/images/dtd-logo.png | 15.45KB | 15.45KB | 0.01% |