Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/makemydonation-imo/mmdimo.php+147
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.80MB] [CPU: ▼59.14ms] Passed 4 tests
A check of server-side resources used by Make My Donation - In Memory Of Platform
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 6.38 ▼37.11 |
Dashboard /wp-admin | 2.21 ▼1.09 | 7.28 ▼49.19 |
Posts /wp-admin/edit.php | 2.21 ▼1.15 | 5.83 ▼51.83 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.68 | 7.43 ▼98.42 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 6.08 ▼28.78 |
Make My Donation /wp-admin/options-general.php?page=mmdimo | 2.21 | 6.44 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Make My Donation - In Memory Of Platform
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.23 ▼0.14 | 2.07 ▲0.50 | 41.96 ▼7.31 |
Dashboard /wp-admin | 2,202 ▲22 | 5.63 ▼0.02 | 89.08 ▼1.51 | 39.92 ▼7.44 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.03 ▲0.08 | 38.49 ▼1.17 | 35.15 ▼0.11 |
Add New Post /wp-admin/post-new.php | 6,537 ▲5,011 | 24.79 ▲1.21 | 895.16 ▲233.87 | 65.19 ▲11.15 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.19 ▲0.02 | 100.61 ▼0.21 | 44.65 ▼3.21 |
Make My Donation /wp-admin/options-general.php?page=mmdimo | 1,280 | 2.14 | 30.64 | 27.42 |
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
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/makemydonation-imo/mmdimo.php+147
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=mmdimo
- > POST request to /wp-admin/admin-ajax.php?action=mmdimo_load_donations&nonce=36a3062b6a
- > Deprecated in wp-content/plugins/makemydonation-imo/mmdimo.php+147
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/makemydonation-imo/api.php
- > /wp-content/plugins/makemydonation-imo/options.php
- > /wp-content/plugins/makemydonation-imo/metabox.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/makemydonation-imo/lib/wp-background-processing/classes/wp-background-process.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/makemydonation-imo/mmdimo.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/makemydonation-imo/lib/wp-background-processing/wp-background-processing.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/makemydonation-imo/classes/mmdimo-load-donations.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: donation, charity, third-party, funeral home, obituary...
makemydonation-imo/mmdimo.php 77% from 13 tests
The main PHP file in "Make My Donation - In Memory Of Platform" ver. 1.13.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 145 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("makemydonation-imo.php" instead of "mmdimo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,155 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 341 | 428 | 1,304 |
JavaScript | 10 | 92 | 127 | 830 |
CSS | 6 | 2 | 24 | 550 |
Sass | 1 | 14 | 0 | 239 |
Markdown | 2 | 93 | 0 | 214 |
JSON | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 2 | 66.67% |
▷ Concrete classes | 1 | 33.33% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 42.86% |
▷ Protected methods | 20 | 57.14% |
▷ Private methods | 0 | 0.00% |
Functions | 49 | |
▷ Named functions | 49 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/orghunter-csc/img/search.png | 0.23KB | 0.37KB | 0.00% |
lib/orghunter-csc/lib/chosen/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
lib/orghunter-csc/lib/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |