84% give-donation-grid-addon

Code Review | Give Donation Grid Addon

WordPress plugin Give Donation Grid Addon scored84%from 54 tests.

About plugin

  • Plugin page: give-donation-gri...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.1
  • WordPress version: 6.3.1
  • First release: May 11, 2016
  • Latest release: May 11, 2016
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: ferozjaf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,547 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by Give Donation Grid Addon
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.27 ▼1.65
Dashboard /wp-admin3.31 ▲0.0044.35 ▼5.57
Posts /wp-admin/edit.php3.36 ▲0.0047.80 ▲1.52
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.33 ▼12.99
Media Library /wp-admin/upload.php3.23 ▲0.0036.25 ▲2.75

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Give Donation Grid Addon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.541.53 ▼0.0541.98 ▲1.58
Dashboard /wp-admin2,206 ▲184.85 ▼0.11100.95 ▼7.4038.56 ▼6.33
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0534.60 ▼3.1041.96 ▲8.50
Add New Post /wp-admin/post-new.php1,544 ▲218.30 ▼0.08641.42 ▲21.1966.91 ▲6.03
Media Library /wp-admin/upload.php1,385 ▼34.18 ▼0.0497.28 ▲1.6544.70 ▲2.77

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/give-donation-grid-addon/give_grid.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

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
These attributes need to be fixed: You can look at the official readme.txt

give-donation-grid-addon/give_grid.php 92% from 13 tests

The primary PHP file in "Give Donation Grid Addon" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("give-donation-grid-addon.php" instead of "give_grid.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin282 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript22413117
PHP1108114
CSS23551

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin