Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼4.07ms] Passed 4 tests
An overview of server-side resources used by Easy Fundraisers
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 35.66 ▼3.56 |
Dashboard /wp-admin | 3.52 ▲0.21 | 46.34 ▲0.79 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 47.30 ▼1.17 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 83.70 ▼12.32 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 39.64 ▲1.29 |
Settings /wp-admin/edit.php?post_type=collection&page=collections-settings-menu | 3.40 | 31.09 |
Donations /wp-admin/edit.php?post_type=collection&page=donations_admin_page | 3.39 | 34.04 |
All Collections /wp-admin/edit.php?post_type=collection | 3.48 | 34.55 |
Categories /wp-admin/edit-tags.php?taxonomy=collectioncategory&post_type=collection | 3.37 | 33.09 |
Server storage [IO: ▲0.55MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: 2 new tables, 14 new options
New tables |
---|
wp_donations_api |
wp_donations |
New WordPress options |
---|
easy_fundraisers_general_settings_arraykey |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
easy_fundraisers_3colwidget_settings_arraykey |
widget_theysaidso_widget |
db_upgraded |
widget_list_collections_widget |
theysaidso_admin_options |
easy_fundraisers_payex_settings_arraykey |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Easy Fundraisers
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 13.92 ▼0.67 | 9.54 ▲7.86 | 35.30 ▼7.98 |
Dashboard /wp-admin | 2,243 ▲58 | 5.90 ▲1.04 | 99.91 ▼6.89 | 39.92 ▲0.91 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 1.97 ▼0.08 | 39.91 ▲3.61 | 35.46 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,559 ▲45 | 22.95 ▲5.45 | 599.03 ▼57.54 | 59.27 ▼0.27 |
Media Library /wp-admin/upload.php | 1,425 ▲37 | 4.23 ▲0.03 | 99.58 ▲0.05 | 40.92 ▼2.16 |
Settings /wp-admin/edit.php?post_type=collection&page=collections-settings-menu | 876 | 2.05 | 22.17 | 24.78 |
Donations /wp-admin/edit.php?post_type=collection&page=donations_admin_page | 832 | 2.03 | 25.29 | 26.16 |
All Collections /wp-admin/edit.php?post_type=collection | 1,107 | 1.93 | 30.93 | 29.73 |
Categories /wp-admin/edit-tags.php?taxonomy=collectioncategory&post_type=collection | 1,268 | 2.13 | 27.73 | 29.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 14 options in the database
- can_compress_scripts
- easy_fundraisers_email_settings_arraykey
- easy_fundraisers_archive_settings_arraykey
- easy_fundraisers_general_settings_arraykey
- easy_fundraisers_newcol_settings_arraykey
- widget_theysaidso_widget
- widget_recent-posts
- easy_fundraisers_payex_settings_arraykey
- widget_recent-comments
- easy_fundraisers_3colwidget_settings_arraykey
- ...
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/easy-fundraisers/api/index.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to a member function disconnect() on null in wp-content/plugins/easy-fundraisers/api/index.php:34
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 11 tag instead of maximum 10
easy-fundraisers/easy_fundraisers.php 85% from 13 tests
The entry point to "Easy Fundraisers" version 0.1.1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-fundraisers.php" instead of "easy_fundraisers.php")
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
No dangerous file extensions were detected5,398 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 871 | 591 | 4,545 |
PO File | 1 | 322 | 453 | 591 |
CSS | 2 | 59 | 1 | 255 |
JavaScript | 1 | 0 | 9 | 7 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 15.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 55.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 249 | |
▷ Static methods | 1 | 0.40% |
▷ Public methods | 208 | 83.53% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 41 | 16.47% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/payex_logo.png | 16.26KB | 2.01KB | ▼ 87.63% |