83% givewp-donation-widgets-for-elementor

Code Review | GiveWP Donation Widgets for Elementor

WordPress plugin GiveWP Donation Widgets for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: givewp-donation-w...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Apr 29, 2020
  • Latest release: Jul 8, 2022
  • Number of updates: 9
  • Update frequency: every 88.9 days
  • Top authors: webdevmattcrom (88.89%)jason_the_adams (22.22%)

Code review

54 tests

User reviews

4 reviews

Install metrics

4,000+ active /20,509 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.07ms] Passed 4 tests

This is a short check of server-side resources used by GiveWP Donation Widgets for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.39 ▲0.07
Dashboard /wp-admin3.35 ▲0.0150.68 ▼16.53
Posts /wp-admin/edit.php3.40 ▲0.0448.99 ▼6.74
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.67 ▼9.09
Media Library /wp-admin/upload.php3.27 ▲0.0439.14 ▲2.33

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
dw4elementor_activation_date
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for GiveWP Donation Widgets for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3113.35 ▼0.651.71 ▼0.4344.19 ▲0.37
Dashboard /wp-admin2,205 ▲174.87 ▼0.00109.30 ▼9.2641.40 ▼1.90
Posts /wp-admin/edit.php2,091 ▲22.06 ▲0.0340.81 ▲4.5135.76 ▲0.84
Add New Post /wp-admin/post-new.php1,530 ▲223.20 ▼0.00648.60 ▼27.2752.71 ▲2.01
Media Library /wp-admin/upload.php1,387 ▼14.24 ▲0.1799.89 ▼10.4744.29 ▼5.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • dw4elementor_activation_date
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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
The following issues need your attention
  • 14× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/givewp-donation-widgets-for-elementor/widgets/give_register.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/givewp-donation-widgets-for-elementor/widgets/give_multi_form_goal_block.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/givewp-donation-widgets-for-elementor/includes/admin/subscribe.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/givewp-donation-widgets-for-elementor/widgets/give_donor_wall.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/givewp-donation-widgets-for-elementor/widgets/donation_history.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/givewp-donation-widgets-for-elementor/widgets/give_form_grid.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/givewp-donation-widgets-for-elementor/widgets/give_totals.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/givewp-donation-widgets-for-elementor/widgets/give_profile_editor.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/givewp-donation-widgets-for-elementor/widgets/give_goal.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/givewp-donation-widgets-for-elementor/widgets/give_receipt.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #4 (The GiveWP Donor Wall Widget), #5 (The GiveWP Totals Widget)
You can take inspiration from this readme.txt

givewp-donation-widgets-for-elementor/givewp-elementor-widgets.php 85% from 13 tests

The principal PHP file in "GiveWP Donation Widgets for Elementor" v. 1.2.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("givewp-donation-widgets-for-elementor.php" instead of "givewp-elementor-widgets.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin2,917 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP164641,0102,811
CSS2176106

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity10.31
▷ Minimum class complexity1.00
▷ Maximum class complexity38.00
Average method complexity2.21
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes17.69%
Methods100
▷ Static methods11.00%
▷ Public methods7171.00%
▷ Protected methods2424.00%
▷ Private methods55.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin