10% cyber-fundraiser-lite

Code Review | Cyber Fundraiser Lite

WordPress plugin Cyber Fundraiser Lite scored 10% from 54 tests.

About plugin

  • Plugin page: cyber-fundraiser-...
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 19, 2017
  • Latest release: Apr 6, 2017
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: cybersource (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 649 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/cyber-fundraiser-lite/includes/shortcodes/class.facebook.feeds.shortcode.php+6
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.95MB] [CPU: ▼47.27ms] Passed 4 tests

Server-side resources used by Cyber Fundraiser Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.436.52 ▼34.22
Dashboard /wp-admin2.05 ▼1.259.60 ▼36.75
Posts /wp-admin/edit.php2.05 ▼1.309.26 ▼36.93
Add New Post /wp-admin/post-new.php2.05 ▼3.837.34 ▼81.18
Media Library /wp-admin/upload.php2.05 ▼1.186.99 ▼29.44
Donations /wp-admin/admin.php?page=donations2.056.88
Settings /wp-admin/admin.php?page=cyber-fundraiser-settings2.059.54
Projects /wp-admin/edit.php?post_type=projects2.057.23
Getting Started /wp-admin/admin.php?page=cyber-fundraising-welcome2.058.12

Server storage [IO: ▲4.73MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 796 new files
Database: 4 new tables, 9 new options
New tables
wp_cyber_donations
wp_cyber_statistics_visitors
wp_cyber_guest_donations
wp_cyber_statistics_visits
New WordPress options
theysaidso_admin_options
widget_cyber-facebookfeeds-widget
widget_recent-posts
widget_cyber_donation_widget
can_compress_scripts
widget_theysaidso_widget
widget_cyber-twitterfeeds-widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Cyber Fundraiser Lite
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,964 ▲22914.13 ▼0.269.33 ▲7.4936.94 ▼11.30
Dashboard /wp-admin2,287 ▲995.17 ▼0.67106.39 ▼9.8637.06 ▼3.55
Posts /wp-admin/edit.php2,175 ▲862.36 ▲0.3537.77 ▼3.5429.20 ▼7.99
Add New Post /wp-admin/post-new.php1,742 ▲22220.72 ▼2.51676.59 ▼3.2261.29 ▼0.35
Media Library /wp-admin/upload.php1,472 ▲844.45 ▲0.14108.17 ▲2.1042.87 ▼6.15
Donations /wp-admin/admin.php?page=donations1,5313.7566.1271.05
Settings /wp-admin/admin.php?page=cyber-fundraiser-settings1,5453.7057.5538.07
Projects /wp-admin/edit.php?post_type=projects1,1362.2836.6624.68
Getting Started /wp-admin/admin.php?page=cyber-fundraising-welcome1,0703.4048.7527.62

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/cyber-fundraiser-lite/includes/shortcodes/class.facebook.feeds.shortcode.php+6
    Trying to access array offset on value of type bool
  • The uninstall procedure failed, leaving 4 tables in the database
    • wp_cyber_donations
    • wp_cyber_guest_donations
    • wp_cyber_statistics_visitors
    • wp_cyber_statistics_visits
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • widget_cyber_donation_widget
    • can_compress_scripts
    • widget_cyber-twitterfeeds-widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_cyber-facebookfeeds-widget
    • db_upgraded

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 72 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cyber-fundraising-welcome
    • > Notice in wp-content/plugins/cyber-fundraiser-lite/includes/shortcodes/class.facebook.feeds.shortcode.php+8
    Trying to access array offset on value of type bool
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cyber-fundraiser-settings
    • > Notice in wp-content/plugins/cyber-fundraiser-lite/includes/admin/class.admin.menus.php+403
    Undefined index: tab
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=donations
    • > Notice in wp-content/plugins/cyber-fundraiser-lite/includes/admin/views/cyber_fundraiser_dontions_view.php+55
    Undefined index: statuss
    • > GET request to /wp-admin/admin.php?page=donations
    • > Notice in wp-content/plugins/cyber-fundraiser-lite/includes/admin/views/cyber_fundraiser_dontions_view.php+76
    Undefined index: search_value
  • 54 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cyber-fundraiser-settings
    • > Notice in wp-content/plugins/cyber-fundraiser-lite/includes/admin/views/cyber_fundraiser_general_settings_tab.php+186
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/edit.php?post_type=projects
    • > Notice in wp-content/plugins/cyber-fundraiser-lite/includes/admin/class.admin.menus.php+100
    Trying to get property 'post_type' of non-object

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 103× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/sample/payments/UpdatePayment.php
    • > /wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/sample/notifications/DeleteAllWebhooks.php
    • > /wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/sample/payouts/CancelPayoutItem.php
    • > /wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/sample/vault/UpdateCreditCard.php
    • > /wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/sample/invoice/CreateInvoice.php
    • > /wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/sample/invoice-templates/DeleteInvoiceTemplate.php
    • > /wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/sample/notifications/GetWebhook.php
    • > /wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/sample/payments/CreateFuturePayment.php
    • > /wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/sample/payments/GetPayment.php
    • > /wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/sample/invoice/RemindInvoice.php
  • 4095× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line 179
    • > PHP Warning
      sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line 179
    • > PHP Warning
      sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line 179
    • > PHP Warning
      sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line 179
    • > PHP Warning
      sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line 179
    • > PHP Warning
      sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line 179
    • > PHP Warning
      sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line 179
    • > PHP Warning
      sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line 179
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/tests/PayPal/Test/Api/ShippingAddressTest.php:12
    • > PHP Warning
      sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/cyber-fundraiser-lite/includes/libraries/PayPal-Rest_api/paypal/rest-api-sdk-php/lib/PayPal/Common/PayPalModel.php on line 179

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cyber-fundraising-welcome
    • > Network (severe)
    wp-admin/admin-ajax.php?ver=6.3.1 - Failed to load resource: the server responded with a status of 400 (Bad Request)
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cyber-fundraising-welcome
    • > Javascript (severe) in unknown
    /wp-content/plugins/cyber-fundraiser-lite/assets/js/frontend/bootstrap.min.js?ver=1.0.0 5:215 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cyber-fundraising-welcome
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,underscore,shortcode,media-upload,moxiejs,plupload&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).tooltip is not a function" "TypeError: $(...).tooltip is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/cyber-fundraiser-lite/assets/js/admin.js?ver=6.3.1:150:31)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,underscore,shortcode,media-upload,moxiejs,plupload&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,underscore,shortcode,media-upload,moxiejs,plupload&ver=6.3.1:2:27292)" undefined
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=cyber-fundraising-welcome
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,thickbox,underscore,shortcode,media-upload,moxiejs,plupload&ver=6.3.1 1:28721 Uncaught TypeError: $(...).tooltip is not a function

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

cyber-fundraiser-lite/cyber-fundraiser-lite.php 92% from 13 tests

Analyzing the main PHP file in "Cyber Fundraiser Lite" version 0.1.0
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis 5% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
These items require your attention
  • Do not include executable or dangerous files in your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/cyber-fundraiser-lite/includes/admin/api/fb_ca_chain_bundle.crt
49,572 lines of code in 727 files:
LanguageFilesBlank linesComment linesLines of code
PHP5318,55423,51234,465
JSON632304,957
JavaScript97431804,186
HTML96269153,103
CSS122771502,007
Markdown61000366
SVG100288
XML28064
Ruby215853
YAML21235
INI2186531
Bourne Shell1112017

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity3.61
▷ Minimum class complexity1.00
▷ Maximum class complexity113.00
Average method complexity1.31
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces26
Interfaces5
Traits2
Classes382
▷ Abstract classes71.83%
▷ Concrete classes37598.17%
▷ Final classes00.00%
Methods3,227
▷ Static methods35210.91%
▷ Public methods3,09896.00%
▷ Protected methods1043.22%
▷ Private methods250.77%
Functions55
▷ Named functions5294.55%
▷ Anonymous functions35.45%
Constants43
▷ Global constants1739.53%
▷ Class constants2660.47%
▷ Public constants26100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 0.46MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/Button_12-128.png2.18KB1.98KB▼ 9.36%
assets/images/charts/1.png11.13KB5.16KB▼ 53.64%
assets/images/thumbs-down-xxl.png4.38KB2.73KB▼ 37.63%
assets/images/thumbs-down-icon-grey.png5.34KB2.48KB▼ 53.52%
assets/images/cyber_fundraiser_icon.png17.68KB0.76KB▼ 95.68%