84% give-donation-modules-for-divi

Code Review | Give - Divi Donation Modules

WordPress plugin Give - Divi Donation Modules scored84%from 54 tests.

About plugin

  • Plugin page: give-donation-mod...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 6.3.1
  • First release: Jan 28, 2021
  • Latest release: Mar 4, 2022
  • Number of updates: 8
  • Update frequency: every 50.8 days
  • Top authors: jason_the_adams (62.5%)webdevmattcrom (50%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /4,098 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.39ms] Passed 4 tests

An overview of server-side resources used by Give - Divi Donation Modules
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.24 ▲4.94
Dashboard /wp-admin3.38 ▲0.0350.22 ▼10.42
Posts /wp-admin/edit.php3.49 ▲0.1347.01 ▼4.41
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.60 ▼12.79
Media Library /wp-admin/upload.php3.31 ▲0.0838.96 ▼1.93

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 84 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Give - Divi Donation Modules
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.28 ▼0.071.76 ▼0.0142.94 ▲2.59
Dashboard /wp-admin2,210 ▲335.63 ▲0.0692.64 ▲5.8143.68 ▲2.28
Posts /wp-admin/edit.php2,110 ▲72.14 ▲0.1532.64 ▼8.1433.45 ▼1.96
Add New Post /wp-admin/post-new.php1,540 ▲1423.60 ▲0.57667.14 ▼100.9553.54 ▼4.26
Media Library /wp-admin/upload.php1,412 ▲154.16 ▼0.0793.76 ▼8.4242.50 ▼7.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
Please fix the following items
  • 26× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'GiveDivi\\Divi\\Routes\\Endpoint' not found in wp-content/plugins/give-donation-modules-for-divi/src/Divi/Routes/RenderRegistrationForm.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'GiveDivi\\Divi\\Routes\\Endpoint' not found in wp-content/plugins/give-donation-modules-for-divi/src/Divi/Routes/RenderSubscriptionTable.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/give-donation-modules-for-divi/src/Divi/Modules/Totals/Module.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/give-donation-modules-for-divi/src/Divi/Modules/SubscriptionsTable/Module.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'GiveDivi\\Divi\\Routes\\Endpoint' not found in wp-content/plugins/give-donation-modules-for-divi/src/Divi/Routes/RenderLoginForm.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GiveDivi\\Divi\\Routes\\Endpoint' not found in wp-content/plugins/give-donation-modules-for-divi/src/Divi/Routes/RenderDonationForm.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'GiveDivi\\Divi\\Routes\\Endpoint' not found in wp-content/plugins/give-donation-modules-for-divi/src/Divi/Routes/RenderFormGrid.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/give-donation-modules-for-divi/src/Divi/Modules/RegistrationForm/Module.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'GiveDivi\\Divi\\Routes\\Endpoint' not found in wp-content/plugins/give-donation-modules-for-divi/src/Divi/Routes/RenderProfileEditor.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'GiveDivi\\Divi\\Routes\\Endpoint' not found in wp-content/plugins/give-donation-modules-for-divi/src/Divi/Routes/RenderMultiFormGoal.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: divi, givewp, donation, divi modules, fundraising

give-donation-modules-for-divi/give-divi.php 85% from 13 tests

"Give - Divi Donation Modules" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("give-donation-modules-for-divi.php" instead of "give-divi.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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 plugin4,825 lines of code in 74 files:
LanguageFilesBlank linesComment linesLines of code
PHP494851,1663,815
JavaScript1914212961
CSS12024
JSON30022
Sass2013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity6.03
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces20
Interfaces0
Traits0
Classes40
▷ Abstract classes12.50%
▷ Concrete classes3997.50%
▷ Final classes00.00%
Methods148
▷ Static methods3221.62%
▷ Public methods14597.97%
▷ Protected methods00.00%
▷ Private methods32.03%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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