Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼1.42ms] Passed 4 tests
Analyzing server-side resources used by IDonate - blood request management system
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 37.51 ▼3.36 |
Dashboard /wp-admin | 3.40 ▲0.10 | 46.23 ▼5.41 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 49.40 ▲2.38 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 97.61 ▲1.98 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 34.98 ▲1.13 |
Blood Request /wp-admin/edit.php?post_type=blood_request | 3.37 | 36.23 |
IDonate Settings /wp-admin/admin.php?page=idonate-setting-admin | 3.30 | 34.38 |
Server storage [IO: ▲1.83MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 82 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_idonate_blood_request_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for IDonate - blood request management system
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,027 ▲265 | 13.60 ▼0.63 | 10.43 ▲8.75 | 27.85 ▼17.26 |
Dashboard /wp-admin | 2,304 ▲127 | 5.78 ▲0.23 | 94.97 ▼7.69 | 47.78 ▲4.68 |
Posts /wp-admin/edit.php | 2,183 ▲83 | 2.42 ▲0.44 | 41.51 ▲5.45 | 35.41 ▼1.32 |
Add New Post /wp-admin/post-new.php | 1,594 ▲68 | 23.26 ▲0.01 | 665.79 ▲1.14 | 34.29 ▼37.04 |
Media Library /wp-admin/upload.php | 1,477 ▲83 | 4.46 ▲0.28 | 100.86 ▼6.02 | 43.26 ▼3.39 |
Blood Request /wp-admin/edit.php?post_type=blood_request | 1,144 | 2.25 | 37.70 | 31.88 |
IDonate Settings /wp-admin/admin.php?page=idonate-setting-admin | 1,938 | 2.02 | 28.22 | 32.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_idonate_blood_request_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
The following issues need your attention
- 21× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/idonate/templates/single-blood_request.php
- > /wp-content/plugins/idonate/inc/widget-blood-requiest.php
- > /wp-content/plugins/idonate/inc/helper-functions.php
- > /wp-content/plugins/idonate/templates/post-blood-request.php
- > /wp-content/plugins/idonate/inc/form-data-handle.php
- > /wp-content/plugins/idonate/inc/donor-functions.php
- > /wp-content/plugins/idonate/inc/meta-fields/tatcmf.php
- > /wp-content/plugins/idonate/inc/meta-fields/tatcmf-config.php
- > /wp-content/plugins/idonate/inc/social-share.php
- > /wp-content/plugins/idonate/inc/meta-fields/fields/checkbox-fields.php
- 48× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant IDONATE_ALERT_MSG - assumed 'IDONATE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/idonate/inc/class-enqueue.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/idonate/inc/countries/states/US.php:11
- > PHP Warning
Use of undefined constant IDONATE_ALERT_MSG - assumed 'IDONATE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/idonate/inc/social-share.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/idonate/inc/countries/states/ZA.php:11
- > PHP Warning
Use of undefined constant IDONATE_ALERT_MSG - assumed 'IDONATE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/idonate/inc/IDonate_ajax_handler.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/idonate/inc/countries/states/SA.php:11
- > PHP Warning
Use of undefined constant IDONATE_ALERT_MSG - assumed 'IDONATE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/idonate/templates/blood-request.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/idonate/inc/countries/states/ES.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/idonate/inc/class-idonate-dashboardwidgets.php:7
- > PHP Warning
Use of undefined constant IDONATE_ALERT_MSG - assumed 'IDONATE_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/idonate/inc/meta-fields/fields/email-fields.php on line 13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots need descriptions #1, #10, #2, #3, #4, #5, #6, #7, #8, #9 in idonate/assets to your readme.txt
- Tags: There are too many tags (19 tag instead of maximum 10)
idonate/idonate.php Passed 13 tests
The principal PHP file in "IDonate - blood request management system" v. 1.8.1 is loaded by WordPress automatically on each request
89 characters long description:
IDonate blood request management system WordPress plugin. Easy to use, easy to customize.
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
Success! There were no dangerous files found in this plugin7,683 lines of code in 64 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 51 | 893 | 1,007 | 4,050 |
SVG | 2 | 0 | 0 | 2,959 |
CSS | 7 | 15 | 41 | 546 |
JavaScript | 4 | 62 | 37 | 128 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 19.44 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 5 | 5.00% |
▷ Public methods | 79 | 79.00% |
▷ Protected methods | 5 | 5.00% |
▷ Private methods | 16 | 16.00% |
Functions | 32 | |
▷ Named functions | 30 | 93.75% |
▷ Anonymous functions | 2 | 6.25% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/heart-01.png | 42.32KB | 13.38KB | ▼ 68.39% |
img/settings-icon.png | 0.75KB | 0.78KB | 0.00% |