Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼6.09ms] Passed 4 tests
This is a short check of server-side resources used by PeerRaiser - Peer-to-Peer Fundraising Donation Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.67 | 48.99 ▲5.70 |
Dashboard /wp-admin | 4.23 ▲0.93 | 56.51 ▲3.23 |
Posts /wp-admin/edit.php | 4.75 ▲1.40 | 63.87 ▲13.05 |
Add New Post /wp-admin/post-new.php | 4.16 ▼1.73 | 44.94 ▼44.35 |
Media Library /wp-admin/upload.php | 4.08 ▲0.85 | 44.78 ▲11.08 |
Campaigns /wp-admin/admin.php?page=peerraiser-campaigns | 4.41 | 47.13 |
Fundraisers /wp-admin/edit.php?post_type=fundraiser | 4.21 | 42.50 |
Donors /wp-admin/admin.php?page=peerraiser-donors | 4.24 | 46.23 |
Dashboard /wp-admin/admin.php?page=peerraiser-dashboard | 4.42 | 47.37 |
Settings /wp-admin/admin.php?page=peerraiser-settings | 4.70 | 64.88 |
Donations /wp-admin/admin.php?page=peerraiser-donations | 4.16 | 39.63 |
Teams /wp-admin/admin.php?page=peerraiser-teams | 4.36 | 40.88 |
Participants /wp-admin/admin.php?page=peerraiser-participants | 4.25 | 41.82 |
Server storage [IO: ▲5.23MB] [DB: ▲0.08MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 701 new files
Database: 4 new tables, 26 new options
New tables |
---|
wp_pr_donations |
wp_pr_donors |
wp_pr_donormeta |
wp_pr_donationmeta |
New WordPress options |
---|
wp_pr_donations_db_version |
peerraiser_activity_feed |
widget_peerraiser_fundraiser_thermometer |
wp_pr_donationmeta_db_version |
widget_peerraiser_campaign_donations |
widget_peerraiser_top_fundraisers |
widget_recent-comments |
widget_peerraiser_team_join_button |
db_upgraded |
widget_peerraiser_team_roster |
... |
Browser metrics Passed 4 tests
PeerRaiser - Peer-to-Peer Fundraising Donation Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲227 | 14.12 ▼0.11 | 7.06 ▲5.31 | 39.70 ▼5.62 |
Dashboard /wp-admin | 2,269 ▲78 | 4.93 ▼0.88 | 110.14 ▲5.34 | 39.84 ▼3.88 |
Posts /wp-admin/edit.php | 2,152 ▲63 | 2.07 ▲0.09 | 40.28 ▲1.10 | 35.99 ▼1.28 |
Add New Post /wp-admin/post-new.php | 1,560 ▲43 | 17.70 ▲0.14 | 688.50 ▲8.05 | 53.57 ▲0.50 |
Media Library /wp-admin/upload.php | 1,550 ▲159 | 4.52 ▲0.29 | 111.92 ▲13.78 | 48.44 ▲3.37 |
Campaigns /wp-admin/admin.php?page=peerraiser-campaigns | 1,176 | 2.17 | 34.14 | 44.31 |
Fundraisers /wp-admin/edit.php?post_type=fundraiser | 1,159 | 2.04 | 36.50 | 31.69 |
Donors /wp-admin/admin.php?page=peerraiser-donors | 1,090 | 2.21 | 30.84 | 30.12 |
Dashboard /wp-admin/admin.php?page=peerraiser-dashboard | 1,085 | 2.30 | 32.60 | 69.74 |
Settings /wp-admin/admin.php?page=peerraiser-settings | 1,824 | 4.06 | 72.55 | 79.88 |
Donations /wp-admin/admin.php?page=peerraiser-donations | 1,077 | 2.15 | 30.19 | 28.35 |
Teams /wp-admin/admin.php?page=peerraiser-teams | 1,070 | 2.17 | 28.62 | 28.00 |
Participants /wp-admin/admin.php?page=peerraiser-participants | 1,070 | 2.17 | 31.35 | 29.77 |
Uninstaller [IO: ▲0.05MB] [DB: ▲0.09MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie tables were found after uninstall: 4 tables
- wp_pr_donations
- wp_pr_donormeta
- wp_pr_donationmeta
- wp_pr_donors
- This plugin does not fully uninstall, leaving 26 options in the database
- widget_peerraiser_fundraiser_donations
- wp_pr_donations_db_version
- widget_recent-comments
- peerraiser_options
- widget_peerraiser_team_roster
- widget_peerraiser_campaign_donations
- widget_peerraiser_team_thermometer
- widget_peerraiser_team_join_button
- peerraiser_activity_feed
- theysaidso_admin_options
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 15× GET requests to PHP files return non-empty strings (only 10 are shown):
- > /wp-content/plugins/peerraiser/views/frontend/widget/peerraiser-fundraiser-donate-button.php
- > /wp-content/plugins/peerraiser/views/backend/partials/donation-box-edit.php
- > /wp-content/plugins/peerraiser/views/frontend/widget/peerraiser-top-teams.php
- > /wp-content/plugins/peerraiser/views/frontend/partials/registration-choices.php
- > /wp-content/plugins/peerraiser/views/frontend/widget/peerraiser-campaign-register-button.php
- > /wp-content/plugins/peerraiser/views/backend/partials/donor-box-add.php
- > /wp-content/plugins/peerraiser/views/frontend/widget/peerraiser-top-fundraisers.php
- > /wp-content/plugins/peerraiser/views/backend/partials/donation-box-add.php
- > /wp-content/plugins/peerraiser/views/frontend/widget/peerraiser-campaign-donations.php
- > /wp-content/plugins/peerraiser/views/frontend/widget/peerraiser-team-roster.php
- 280× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/peerraiser/views/frontend/participant-dashboard-donations.php on line 4
- > PHP Notice
Undefined variable: args in wp-content/plugins/peerraiser/views/frontend/widget/peerraiser-top-fundraisers.php on line 1
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/peerraiser/views/backend/partials/donation-card.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/peerraiser/views/backend/partials/donation-box-notes.php:2
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/peerraiser/views/frontend/participant-dashboard-settings.php on line 4
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/peerraiser/application/model/admin/class-participant-list-table.php on line 6
- > PHP Notice
Undefined variable: args in wp-content/plugins/peerraiser/views/frontend/widget/peerraiser-fundraiser-donations.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'PeerRaiser\\Core\\Database' not found in wp-content/plugins/peerraiser/application/model/database/class-donation-table.php:7
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/peerraiser/library/CMB2/includes/rest-api/CMB2_REST.php:19
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/peerraiser/views/frontend/participant-dashboard-settings.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (21 tag instead of maximum 10)
peerraiser/peerraiser.php 92% from 13 tests
The principal PHP file in "PeerRaiser - Peer-to-Peer Fundraising Donation Plugin" v. 1.3.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
There were no executable files found in this plugin75,543 lines of code in 531 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 222 | 6,132 | 11,218 | 23,686 |
JavaScript | 143 | 1,933 | 1,429 | 9,594 |
CSS | 25 | 253 | 1,247 | 7,281 |
Sass | 17 | 305 | 29 | 1,407 |
Markdown | 2 | 219 | 0 | 676 |
SVG | 2 | 0 | 0 | 576 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 19.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 154 | |
▷ Abstract classes | 10 | 6.49% |
▷ Concrete classes | 144 | 93.51% |
▷ Final classes | 0 | 0.00% |
Methods | 1,338 | |
▷ Static methods | 150 | 11.21% |
▷ Public methods | 1,143 | 85.43% |
▷ Protected methods | 109 | 8.15% |
▷ Private methods | 86 | 6.43% |
Functions | 57 | |
▷ Named functions | 57 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 6 | 50.00% |
▷ Class constants | 6 | 50.00% |
▷ Public constants | 6 | 100.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
23 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
library/CMB2/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
library/CMB2/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
library/CMB2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
assets/images/icon-error.png | 1.56KB | 0.66KB | ▼ 57.74% |
assets/images/icon-gear.png | 1.19KB | 0.53KB | ▼ 55.39% |