Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼11.76ms] Passed 4 tests
This is a short check of server-side resources used by Double the Donation - A matching gift plug-in to help your fundraising efforts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 35.20 ▼4.42 |
Dashboard /wp-admin | 3.33 ▼0.01 | 40.60 ▼17.87 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.91 ▲1.43 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 80.44 ▼21.72 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 31.66 ▼3.02 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
doublethedonation_api_host |
can_compress_scripts |
doublethedonation_cache_version |
widget_recent-posts |
theysaidso_admin_options |
doublethedonation_public_key |
Browser metrics Passed 4 tests
An overview of browser requirements for Double the Donation - A matching gift plug-in to help your fundraising efforts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲59 | 14.27 ▼0.01 | 1.58 ▲0.06 | 37.00 ▼4.46 |
Dashboard /wp-admin | 2,214 ▲34 | 5.64 ▲0.03 | 96.01 ▲10.59 | 42.37 ▲0.00 |
Posts /wp-admin/edit.php | 2,116 ▲16 | 1.94 ▼0.01 | 40.68 ▲4.51 | 36.57 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.11 ▼0.37 | 696.06 ▲1.16 | 56.53 ▲3.47 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.20 ▼0.00 | 98.25 ▼11.92 | 42.09 ▼5.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 9 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- doublethedonation_cache_version
- doublethedonation_public_key
- doublethedonation_api_host
- widget_recent-posts
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
Please fix the following items
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/double-the-donation/doublethedonation.php on line 15
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/double-the-donation/doublethedonation.php on line 15
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/double-the-donation/doublethedonation.php on line 15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: matching gifts, double the donation, donation matching
double-the-donation/doublethedonation.php 92% from 13 tests
Analyzing the main PHP file in "Double the Donation - A matching gift plug-in to help your fundraising efforts" version 1.1.2
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("double-the-donation.php" instead of "doublethedonation.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin180 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 54 | 17 | 180 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin