89% bizappay-for-givewp

Code Review | Bizappay for GiveWP

WordPress plugin Bizappay for GiveWP scored89%from 54 tests.

About plugin

  • Plugin page: bizappay-for-givewp
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8.1
  • WordPress version: 6.3.1
  • First release: Nov 24, 2021
  • Latest release: Nov 24, 2021
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: laratech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /298 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.05ms] Passed 4 tests

This is a short check of server-side resources used by Bizappay for GiveWP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0537.37 ▼1.29
Dashboard /wp-admin3.35 ▲0.0448.12 ▼0.82
Posts /wp-admin/edit.php3.40 ▲0.0460.83 ▲12.28
Add New Post /wp-admin/post-new.php5.93 ▲0.0479.10 ▼15.77
Media Library /wp-admin/upload.php3.27 ▲0.0431.79 ▼2.32

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Bizappay for GiveWP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▼0.061.82 ▲0.1843.92 ▼2.12
Dashboard /wp-admin2,209 ▲245.85 ▲0.96100.59 ▼6.0841.83 ▲2.61
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0134.09 ▼8.3433.31 ▼4.69
Add New Post /wp-admin/post-new.php1,533 ▲1423.13 ▼0.16679.42 ▲28.5657.64 ▲4.18
Media Library /wp-admin/upload.php1,385 ▼34.22 ▲0.0093.58 ▲0.3240.51 ▼1.65

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === bizappay-for-givewp === )
Please take inspiration from this readme.txt

bizappay-for-givewp/index.php 85% from 13 tests

The main file in "Bizappay for GiveWP" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 155 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("bizappay-for-givewp.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin174 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17270174

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/bizappay.png15.29KB5.81KB▼ 61.99%