84% signature-notification

Code Review | Notification : Signature

WordPress plugin Notification : Signature scored 84% from 54 tests.

About plugin

  • Plugin page: signature-notific...
  • Plugin version: 3.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.8
  • WordPress version: 6.3.1
  • First release: Jun 21, 2017
  • Latest release: Nov 19, 2021
  • Number of updates: 15
  • Update frequency: every 107.5 days
  • Top authors: Kubitomakita (93.33%)bracketspace (13.33%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,532 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.23ms] Passed 4 tests

A check of server-side resources used by Notification : Signature
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.84 ▼5.94
Dashboard /wp-admin3.31 ▲0.0043.74 ▼8.68
Posts /wp-admin/edit.php3.36 ▲0.0044.07 ▼0.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.14 ▼0.81
Media Library /wp-admin/upload.php3.23 ▲0.0032.28 ▼1.48

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Notification : Signature
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲3613.21 ▲0.094.97 ▲3.3045.20 ▲1.75
Dashboard /wp-admin2,203 ▼65.78 ▼0.0797.26 ▼11.3639.68 ▼3.31
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0335.64 ▲1.5233.64 ▼3.69
Add New Post /wp-admin/post-new.php1,534 ▼023.59 ▲0.35633.14 ▼66.1959.73 ▼7.15
Media Library /wp-admin/upload.php1,382 ▼34.18 ▼0.0297.80 ▼5.9742.67 ▼4.36

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
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

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
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/signature-notification/notification-signature.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\Signature\\Vendor\\Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/signature-notification/vendor/micropackage/requirements/src/Checker/WP.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\Signature\\Vendor\\Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/signature-notification/vendor/micropackage/requirements/src/Checker/PHP.php:16
    • > PHP Fatal error
      Trait 'BracketSpace\otification\\Signature\\Vendor\\Micropackage\\DocHooks\\HookTrait' not found in wp-content/plugins/signature-notification/vendor/micropackage/dochooks/src/HookAnnotations.php on line 20
    • > PHP Fatal error
      Uncaught Error: Interface 'BracketSpace\otification\\Signature\\Vendor\\Micropackage\\Requirements\\Interfaces\\Checkable' not found in wp-content/plugins/signature-notification/vendor/micropackage/requirements/src/Abstracts/Checker.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/signature-notification/compat/register-hooks.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\Signature\\Vendor\\Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/signature-notification/vendor/micropackage/requirements/src/Checker/PHPExtensions.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\Signature\\Vendor\\Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/signature-notification/src/Requirements/BasePlugin.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\Signature\\Vendor\\Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/signature-notification/vendor/micropackage/requirements/src/Checker/SSL.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'BracketSpace\otification\\Signature\\Vendor\\Micropackage\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/signature-notification/vendor/micropackage/requirements/src/Checker/Plugins.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: notification, signature, email, notify, mail

signature-notification/signature-notification.php 85% from 13 tests

The principal PHP file in "Notification : Signature" v. 3.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected2,000 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP364731,2371,499
JSON100382
Markdown433053
PO File191146
XML10020

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces15
Interfaces1
Traits1
Classes24
▷ Abstract classes14.17%
▷ Concrete classes2395.83%
▷ Final classes00.00%
Methods102
▷ Static methods2524.51%
▷ Public methods9694.12%
▷ Protected methods32.94%
▷ Private methods32.94%
Functions6
▷ Named functions116.67%
▷ Anonymous functions583.33%
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
No PNG images were found in this plugin