84% charityemail-sign-up-widget

Code Review | CharityeMail Sign Up Widget

WordPress plugin CharityeMail Sign Up Widget scored84%from 54 tests.

About plugin

  • Plugin page: charityemail-sign...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-3.4.1
  • WordPress version: 6.3.1
  • First release: Nov 5, 2012
  • Latest release: Nov 5, 2012
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: Boswall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /880 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼12.53ms] Passed 4 tests

Server-side resources used by CharityeMail Sign Up Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.71 ▼2.49
Dashboard /wp-admin3.34 ▼0.0144.53 ▼16.86
Posts /wp-admin/edit.php3.39 ▲0.0347.40 ▼3.28
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.14 ▼27.50
Media Library /wp-admin/upload.php3.26 ▲0.0335.87 ▲2.46
CharityeMail Sign Up Widget /wp-admin/options-general.php?page=charityemail3.7337.51

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 10 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for CharityeMail Sign Up Widget
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11313.38 ▼1.158.76 ▲6.9742.65 ▲2.03
Dashboard /wp-admin2,202 ▲225.63 ▼0.0388.76 ▲3.2940.46 ▼1.06
Posts /wp-admin/edit.php2,104 ▲41.98 ▲0.0238.75 ▲0.7535.70 ▲1.82
Add New Post /wp-admin/post-new.php1,529 ▼623.14 ▲4.99643.18 ▲22.1953.24 ▼23.42
Media Library /wp-admin/upload.php1,407 ▲104.19 ▼0.0398.56 ▲3.2743.40 ▲2.72
CharityeMail Sign Up Widget /wp-admin/options-general.php?page=charityemail1,1202.0426.0840.85

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to a member function GetContactByEmail() on null in wp-content/plugins/charityemail-sign-up-widget/DotMailerConnect.php:105
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/charityemail-sign-up-widget/charityemail-sign-up-widget.php:61

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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: email marketing, newsletter sign-up

charityemail-sign-up-widget/charityemail-sign-up-widget.php 92% from 13 tests

The main PHP script in "CharityeMail Sign Up Widget" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 194 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin346 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity2.00
▷ Maximum method complexity7.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions8100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin