83% notify-me-on-user-registration

Code Review | Worldclassthemes Notify me Plugin

WordPress plugin Worldclassthemes Notify me Plugin scored83%from 54 tests.

About plugin

  • Plugin page: notify-me-on-user...
  • Plugin version: 4.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 6.3.1
  • First release: Apr 8, 2016
  • Latest release: Apr 9, 2016
  • Number of updates: 9
  • Update frequency: every 0.6 days
  • Top authors: suhailahmad64 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /667 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.13MB] [CPU: ▼5.60ms] Passed 4 tests

Analyzing server-side resources used by Worldclassthemes Notify me Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0339.60 ▼6.71
Dashboard /wp-admin3.31 ▲0.0145.75 ▼8.02
Posts /wp-admin/edit.php3.36 ▼0.4847.12 ▼5.68
Add New Post /wp-admin/post-new.php5.89 ▲0.00104.35 ▼2.00
Media Library /wp-admin/upload.php3.24 ▲0.0035.69 ▲3.15

Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/notify-me-on-user-registration/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/notify-me-on-user-registration/icon-128\303\227128.png"
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Worldclassthemes Notify me Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲9413.21 ▼0.971.79 ▲0.0545.04 ▼3.55
Dashboard /wp-admin2,215 ▲275.84 ▲0.93123.56 ▲9.67111.32 ▲70.98
Posts /wp-admin/edit.php2,104 ▲152.00 ▼0.0139.38 ▼0.0249.10 ▲13.92
Add New Post /wp-admin/post-new.php1,681 ▲16122.27 ▼0.98731.26 ▲118.5156.03 ▲6.06
Media Library /wp-admin/upload.php1,394 ▲124.17 ▼0.0297.98 ▼2.7779.70 ▲33.51

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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)
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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/notify-me-on-user-registration/index.php:17

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Please add an image for screenshot #2 (icon-128x128.png)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === notify-me-on-user-registration === )
The official readme.txt might help

notify-me-on-user-registration/index.php 92% from 13 tests

The primary PHP file in "Worldclassthemes Notify me Plugin" version 4.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("notify-me-on-user-registration.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin59 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1371659

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 0% from 2 tests

Image compression 0% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 1.24MB with 1.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png518.76KB139.18KB▼ 73.17%
(invalid) icon-128×128.png4.90KB0.00KB▼ 100.00%
images/icon.png2.96KB0.42KB▼ 85.69%
images/offer.png739.51KB269.05KB▼ 63.62%