84% html-new-user-notification-email

Code Review | Html New User Notification

WordPress plugin Html New User Notification scored84%from 54 tests.

About plugin

  • Plugin page: html-new-user-not...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Nov 24, 2014
  • Latest release: Jun 16, 2015
  • Number of updates: 8
  • Update frequency: every 25.5 days
  • Top authors: abhishekfdd (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

50+ active /4,856 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Html New User Notification
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.56 ▼4.63
Dashboard /wp-admin3.34 ▲0.0449.83 ▼1.97
Posts /wp-admin/edit.php3.39 ▲0.0450.28 ▼1.48
Add New Post /wp-admin/post-new.php5.92 ▲0.0497.03 ▼6.60
Media Library /wp-admin/upload.php3.27 ▲0.0434.91 ▼4.52
Html User Notification /wp-admin/options-general.php?page=ab-plugin-menu3.3041.81

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Html New User Notification
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3514.81 ▲0.511.75 ▼0.5045.82 ▲0.43
Dashboard /wp-admin2,212 ▲245.81 ▼0.08104.72 ▼7.4541.48 ▼1.27
Posts /wp-admin/edit.php2,095 ▲92.00 ▼0.0138.95 ▼1.7436.69 ▼2.65
Add New Post /wp-admin/post-new.php1,533 ▲523.39 ▲0.40603.11 ▼73.8967.87 ▲6.41
Media Library /wp-admin/upload.php1,397 ▲94.25 ▲0.1196.25 ▼17.9145.93 ▼2.04
Html User Notification /wp-admin/options-general.php?page=ab-plugin-menu1,9187.93161.9768.75

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
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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)
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
The following issues need your attention
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/html-new-user-notification-email/ab-index.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/html-new-user-notification-email/admin/ab-options.php:90

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: email, mail, wp_mail, email log, e-mail...

html-new-user-notification-email/ab-index.php 92% from 13 tests

The main PHP file in "Html New User Notification" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("html-new-user-notification-email.php" instead of "ab-index.php")

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
There were no executable files found in this plugin157 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP25950148
CSS1639

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions9
▷ Named functions9100.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