84% wp-html-mail-give

Code Review | Give Donation - Email Template

WordPress plugin Give Donation - Email Template scored84%from 54 tests.

About plugin

  • Plugin page: wp-html-mail-give
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 15, 2017
  • Latest release: Jun 28, 2019
  • Number of updates: 7
  • Update frequency: every 98.0 days
  • Top authors: haet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,013 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
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.31ms] Passed 4 tests

This is a short check of server-side resources used by Give Donation - Email Template
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.46 ▼5.60
Dashboard /wp-admin3.32 ▲0.0144.99 ▼5.98
Posts /wp-admin/edit.php3.37 ▲0.0145.53 ▼4.53
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.70 ▼17.13
Media Library /wp-admin/upload.php3.24 ▲0.0133.14 ▼1.24

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

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

Browser metrics Passed 4 tests

Give Donation - Email Template: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.31 ▼1.441.71 ▼0.0539.21 ▼5.37
Dashboard /wp-admin2,219 ▲284.81 ▼0.10102.47 ▼1.7944.07 ▲0.13
Posts /wp-admin/edit.php2,099 ▲102.00 ▼0.0138.57 ▲2.6435.21 ▼4.13
Add New Post /wp-admin/post-new.php1,544 ▲1123.12 ▼0.15661.16 ▲49.8462.30 ▲5.14
Media Library /wp-admin/upload.php1,398 ▲104.31 ▲0.1394.79 ▼6.8341.13 ▼2.09

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 fix the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-html-mail-give/wp-html-mail-give.php on line 16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-html-mail-give/wp-html-mail-give.php:41
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wp-html-mail-give/wp-html-mail-give.php on line 16
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-html-mail-give/wp-html-mail-give.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: html mail, email, message, template, mail...

wp-html-mail-give/wp-html-mail-give.php Passed 13 tests

The main file in "Give Donation - Email Template" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
35 characters long description:
Beautiful responsive mails for Give

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
No dangerous file extensions were detected122 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP56453122

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods654.55%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected