84% wp-crowdfunding

Code Review | WP Crowdfunding

WordPress plugin WP Crowdfunding scored84%from 54 tests.

About plugin

  • Plugin page: wp-crowdfunding
  • Plugin version: 2.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3
  • WordPress version: 6.3.1
  • First release: Aug 2, 2016
  • Latest release: Nov 2, 2023
  • Number of updates: 127
  • Update frequency: every 21.0 days
  • Top authors: wpneopro (51.18%)themeum (49.61%)

Code review

54 tests

User reviews

88 reviews

Install metrics

4,000+ active /116,635 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.47MB] [CPU: ▼8.62ms] Passed 4 tests

Server-side resources used by WP Crowdfunding
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.33 ▲0.8646.00 ▲4.65
Dashboard /wp-admin4.11 ▲0.7655.82 ▼10.25
Posts /wp-admin/edit.php4.16 ▲0.8052.28 ▲2.92
Add New Post /wp-admin/post-new.php5.41 ▼0.4854.49 ▼31.78
Media Library /wp-admin/upload.php4.03 ▲0.8052.64 ▲15.52
Settings /wp-admin/admin.php?page=wpcf-settings4.0742.42
Add-ons /wp-admin/admin.php?page=wpcf-crowdfunding3.9732.58

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 150 new files
Database: no new tables, 56 new options
New WordPress options
wpneo_listing_page_id
wpcf_show_short_description
widget_recent-comments
wpneo_enable_recaptcha_campaign_submit_page
wpneo_cf_selected_theme
widget_recent-posts
wpneo_default_campaign_status
wpcf_show_category
wpneo_show_target_goal_and_date
wpneo_crowdfunding_dashboard_page_id
...

Browser metrics Passed 4 tests

Checking browser requirements for WP Crowdfunding
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲11414.28 ▼0.491.76 ▲0.1043.95 ▲0.14
Dashboard /wp-admin2,252 ▲725.59 ▼0.0198.24 ▲10.1580.61 ▲37.52
Posts /wp-admin/edit.php2,170 ▲702.13 ▲0.1435.76 ▲1.2831.07 ▼8.07
Add New Post /wp-admin/post-new.php53 ▼1,4750.42 ▼22.660.06 ▼713.4214.50 ▼48.71
Media Library /wp-admin/upload.php1,472 ▲754.17 ▼0.05107.84 ▲11.4185.04 ▲43.02
Settings /wp-admin/admin.php?page=wpcf-settings1,0711.6627.3131.60
Add-ons /wp-admin/admin.php?page=wpcf-crowdfunding1,1271.8128.0029.42

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 56 options
    • widget_theysaidso_widget
    • wpcf_show_category
    • wpneo_crowdfunding_dashboard_page_id
    • wpneo_listing_page_id
    • wpcf_show_reward
    • wpcf_show_contributor_anonymity
    • wpneo_campaign_edit_status
    • vendor_type
    • wpcf_show_end_method
    • wpneo_crowdfunding_is_used
    • ...

Smoke tests 75% 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 50% 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
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-crowdfunding/addons/social-share/classes/Init.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/wp-crowdfunding/settings/view/Reward_Meta.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-crowdfunding/settings/view/Addons.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-crowdfunding/wpcftemplate/woocommerce/basic/page-fullwidth.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Product' not found in wp-content/plugins/wp-crowdfunding/wpcftemplate/woocommerce/basic/include/loop/rating_html.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_get_current_user() in wp-content/plugins/wp-crowdfunding/includes/woocommerce/dashboard/wpcrowd-reports-chart.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-crowdfunding/wpcftemplate/woocommerce/basic/author-campaigns.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Tags: Too many tags (28 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt is a good inspiration

wp-crowdfunding/wp-crowdfunding.php Passed 13 tests

"WP Crowdfunding" version 2.1.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
57 characters long description:
The Ultimate Fundraising and Backer Plugin for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin18,119 lines of code in 136 files:
LanguageFilesBlank linesComment linesLines of code
PHP1161,7821,38411,827
CSS61881225,111
JavaScript1498971,181

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity25.11
▷ Minimum class complexity1.00
▷ Maximum class complexity106.00
Average method complexity3.84
▷ Minimum method complexity1.00
▷ Maximum method complexity86.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes37
▷ Abstract classes00.00%
▷ Concrete classes37100.00%
▷ Final classes12.70%
Methods314
▷ Static methods113.50%
▷ Public methods314100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/woocommerce-icon.png7.05KB3.41KB▼ 51.68%
addons/social-share/assets/images/thumbnail.png2.60KB1.33KB▼ 48.66%
assets/images/wpcf-plugin.png4.25KB2.51KB▼ 41.02%
assets/addons/2checkout/thumbnail.png2.67KB1.42KB▼ 46.70%
assets/addons/reports/thumbnail.png2.75KB1.63KB▼ 40.75%