84% toolbar-extras-givewp

Code Review | Toolbar Extras for Give Donations - Manage GiveWP Donation Campaigns Even Faster

WordPress plugin Toolbar Extras for Give Donations - Manage GiveWP Donation Campaigns Even Faster scored84%from 54 tests.

About plugin

  • Plugin page: toolbar-extras-gi...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.3
  • WordPress version: 6.3.1
  • First release: Aug 12, 2019
  • Latest release: Nov 13, 2019
  • Number of updates: 8
  • Update frequency: every 12.1 days
  • Top authors: daveshine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /4,678 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.54ms] Passed 4 tests

Server-side resources used by Toolbar Extras for Give Donations - Manage GiveWP Donation Campaigns Even Faster
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.23 ▼6.80
Dashboard /wp-admin3.32 ▼0.0350.24 ▼12.72
Posts /wp-admin/edit.php3.37 ▲0.0149.32 ▼5.16
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.86 ▼5.49
Media Library /wp-admin/upload.php3.24 ▲0.0136.62 ▲3.25

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 72 new files
Database: no new tables, 7 new options
New WordPress options
tbex-options-givewp
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Toolbar Extras for Give Donations - Manage GiveWP Donation Campaigns Even Faster
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.25 ▼0.022.00 ▼0.2134.10 ▼11.57
Dashboard /wp-admin2,223 ▲435.68 ▲0.1583.52 ▼13.0850.35 ▲11.28
Posts /wp-admin/edit.php2,128 ▲282.15 ▲0.2037.38 ▼2.3842.75 ▲4.10
Add New Post /wp-admin/post-new.php1,544 ▲1823.59 ▼0.33647.83 ▼0.2653.71 ▼4.69
Media Library /wp-admin/upload.php1,422 ▲284.19 ▼0.04106.82 ▲7.7249.65 ▲4.24

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
The following issues need your attention
  • 49× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/toolbar-extras-givewp/includes/givewp-addons/items-payments-sofort.php
    • > /wp-content/plugins/toolbar-extras-givewp/includes/givewp-addons/items-manual-donations.php
    • > /wp-content/plugins/toolbar-extras-givewp/includes/givewp-addons/items-mailchimp-for-wp.php
    • > /wp-content/plugins/toolbar-extras-givewp/includes/givewp-addons/items-fee-recovery.php
    • > /wp-content/plugins/toolbar-extras-givewp/includes/functions-conditionals.php
    • > /wp-content/plugins/toolbar-extras-givewp/includes/givewp-addons/items-form-field-manager.php
    • > /wp-content/plugins/toolbar-extras-givewp/includes/tweaks.php
    • > /wp-content/plugins/toolbar-extras-givewp/includes/givewp-addons/items-ure-permissions.php
    • > /wp-content/plugins/toolbar-extras-givewp/includes/givewp-addons/items-email-template.php
    • > /wp-content/plugins/toolbar-extras-givewp/includes/string-switcher.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

toolbar-extras-givewp/toolbar-extras-givewp.php 92% from 13 tests

The primary PHP file in "Toolbar Extras for Give Donations - Manage GiveWP Donation Campaigns Even Faster" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected9,381 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
PHP501,8032,5146,637
PO File29841,5642,375
Markdown31780292
CSS117955
JSON10022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions160
▷ Named functions160100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin