84% fundpress

Code Review | FundPress - WordPress Donation Plugin

WordPress plugin FundPress - WordPress Donation Plugin scored 84% from 54 tests.

About plugin

  • Plugin page: fundpress
  • Plugin version: 2.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.0
  • WordPress version: 6.3.1
  • First release: Feb 17, 2017
  • Latest release: Oct 6, 2022
  • Number of updates: 50
  • Update frequency: every 41.2 days
  • Top authors: leehld (48%)ThimPress (38%)tutv95 (12%)phamtungpth (8%)

Code review

54 tests

User reviews

4 reviews

Install metrics

400+ active / 14,592 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲1.90MB] [CPU: ▲3.24ms] Passed 4 tests

Server-side resources used by FundPress - WordPress Donation Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.23 ▲1.7748.51 ▲3.73
Dashboard /wp-admin5.27 ▲1.9657.88 ▲3.17
Posts /wp-admin/edit.php5.29 ▲1.9375.64 ▲28.97
Add New Post /wp-admin/post-new.php7.93 ▲2.0589.43 ▼11.47
Media Library /wp-admin/upload.php5.14 ▲1.9252.69 ▲17.53
Settings /wp-admin/admin.php?page=tp_donate_setting5.3050.95
Categories /wp-admin/edit-tags.php?taxonomy=dn_campaign_cat&post_type=dn_campaign5.1047.52
Donors /wp-admin/edit.php?post_type=dn_donor5.2149.39
Add Campaign /wp-admin/post-new.php?post_type=dn_campaign5.4163.20
Tags /wp-admin/edit-tags.php?taxonomy=dn_campaign_tag&post_type=dn_campaign5.1054.46
Donates /wp-admin/edit.php?post_type=dn_donate5.2250.56
Campaigns /wp-admin/edit.php?post_type=dn_campaign5.2248.82

Server storage [IO: ▲4.07MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 549 new files
Database: no new tables, 13 new options
New WordPress options
widget_recent-comments
thimpress_donate_version
widget_theysaidso_widget
donate_donate-cart_page_id
can_compress_scripts
db_upgraded
widget_donate_system_widget
donate_checkout_page_id
widget_recent-posts
thimpress_donate
...

Browser metrics Passed 4 tests

Checking browser requirements for FundPress - WordPress Donation Plugin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,132 ▲39716.87 ▲2.50164.34 ▲161.9953.81 ▲8.14
Dashboard /wp-admin2,310 ▲1195.44 ▲0.59115.59 ▲8.0938.44 ▼5.55
Posts /wp-admin/edit.php2,197 ▲1082.61 ▲0.5841.12 ▲4.7232.79 ▼3.78
Add New Post /wp-admin/post-new.php1,598 ▲7023.23 ▲5.01693.65 ▲32.8136.31 ▼16.59
Media Library /wp-admin/upload.php1,492 ▲1014.68 ▲0.44100.26 ▼5.4945.09 ▼0.63
Settings /wp-admin/admin.php?page=tp_donate_setting3,4707.41189.2959.55
Categories /wp-admin/edit-tags.php?taxonomy=dn_campaign_cat&post_type=dn_campaign1,3812.3734.9027.56
Donors /wp-admin/edit.php?post_type=dn_donor1,2232.5335.7029.12
Add Campaign /wp-admin/post-new.php?post_type=dn_campaign3,0507.71177.1767.94
Tags /wp-admin/edit-tags.php?taxonomy=dn_campaign_tag&post_type=dn_campaign1,3502.4834.7229.25
Donates /wp-admin/edit.php?post_type=dn_donate1,2282.5136.9029.87
Campaigns /wp-admin/edit.php?post_type=dn_campaign1,2502.4937.2528.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 13 options in the database
    • theysaidso_admin_options
    • donate_donate-cart_page_id
    • thimpress_donate_version
    • db_upgraded
    • widget_donate_system_widget
    • widget_theysaidso_widget
    • donate_checkout_page_id
    • widget_donate_widget
    • widget_recent-comments
    • widget_recent-posts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 39× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/fundpress/inc/vendors/cmb2/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/fundpress/inc/vendors/cmb2/includes/types/CMB2_Type_Oembed.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/fundpress/inc/vendors/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/fundpress/inc/vendors/cmb2/includes/types/CMB2_Type_Checkbox.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/fundpress/inc/vendors/cmb2/includes/rest-api/CMB2_REST.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/fundpress/inc/vendors/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/fundpress/inc/vendors/cmb2/includes/types/CMB2_Type_File_List.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/fundpress/inc/vendors/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/fundpress/inc/vendors/cmb2/includes/types/CMB2_Type_Title.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup' not found in wp-content/plugins/fundpress/inc/vendors/cmb2/includes/CMB2_Options_Hookup.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

fundpress/fundpress.php Passed 13 tests

"FundPress - WordPress Donation Plugin" version 2.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
102 characters long description:
Easily build your own crowdfunding platform like Kickstarter with this free WordPress donation plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected67,110 lines of code in 349 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP1653,8519,96814,116
CSS211,2311,3349,598
JSON2004,264
Sass20695293,875
JavaScript164526782,130
Markdown42660785
SVG10019

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity16.31
▷ Minimum class complexity1.00
▷ Maximum class complexity186.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes113
▷ Abstract classes1513.27%
▷ Concrete classes9886.73%
▷ Final classes00.00%
Methods789
▷ Static methods13116.60%
▷ Public methods68486.69%
▷ Protected methods9612.17%
▷ Private methods91.14%
Functions124
▷ Named functions124100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants1672.73%
▷ Class constants627.27%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
56 PNG files occupy 0.12MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
assets/images/ui-icons_ef8c08_256x240.png4.44KB4.17KB▼ 6.02%
assets/images/ui-bg_gloss-wave_35_f6a828_500x100.png5.68KB1.83KB▼ 67.77%
assets/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
assets/css/admin/images/ui-icons_228ef1_256x240.png4.44KB4.17KB▼ 6.02%