83% envynotifs

Code Review | EnvyNotifs - All-in-One Notification Management

WordPress plugin EnvyNotifs - All-in-One Notification Management scored83%from 54 tests.

About plugin

  • Plugin page: envynotifs
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7
  • WordPress version: 6.3.1
  • First release: Oct 23, 2020
  • Latest release: Mar 14, 2021
  • Number of updates: 18
  • Update frequency: every 8.0 days
  • Top authors: envytheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /961 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▼3.93ms] Passed 4 tests

This is a short check of server-side resources used by EnvyNotifs - All-in-One Notification Management
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1946.01 ▲0.92
Dashboard /wp-admin3.51 ▲0.2050.99 ▲0.49
Posts /wp-admin/edit.php3.62 ▲0.2648.45 ▲0.03
Add New Post /wp-admin/post-new.php6.09 ▲0.2084.78 ▼15.11
Media Library /wp-admin/upload.php3.43 ▲0.2038.40 ▼1.12
All Notices /wp-admin/edit.php?post_type=envynotifs3.4739.29
Settings /wp-admin/edit.php?post_type=envynotifs&page=envy_notifs_options3.3935.04
Add New /wp-admin/post-new.php?post_type=envynotifs3.5448.44

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

Filesystem and database footprint
It is recommended to fix the following issues
  • Illegal file modification found: 1 file (4.00KB) outside of "wp-content/plugins/envynotifs/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for EnvyNotifs - All-in-One Notification Management
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,940 ▲17913.66 ▼1.099.37 ▲7.5354.64 ▲12.12
Dashboard /wp-admin2,252 ▲494.81 ▼1.05114.25 ▲8.6442.74 ▼0.24
Posts /wp-admin/edit.php2,131 ▲312.02 ▲0.0533.92 ▼2.2135.70 ▲0.01
Add New Post /wp-admin/post-new.php1,449 ▼7718.11 ▲0.58594.96 ▼100.2545.90 ▼7.51
Media Library /wp-admin/upload.php1,428 ▲314.20 ▼0.1295.77 ▼17.2749.56 ▲2.95
All Notices /wp-admin/edit.php?post_type=envynotifs1,0921.9830.8831.58
Settings /wp-admin/edit.php?post_type=envynotifs&page=envy_notifs_options1,4492.1624.0228.41
Add New /wp-admin/post-new.php?post_type=envynotifs2,2227.63171.2465.07

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envynotifs/public/partials/templates/envy-notifs-bottom-bar.php:248
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envynotifs/public/partials/templates/envy-notifs-popup.php:227
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envynotifs/public/partials/templates/envy-notifs-left-sidebar-outside.php:187
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envynotifs/public/partials/templates/envy-notifs-right-sidebar-inside.php:233
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envynotifs/public/partials/templates/envy-notifs-top-bar.php:272
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/envynotifs/public/partials/envy-notifs-public-display.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envynotifs/public/partials/templates/envy-notifs-right-sidebar-outside.php:187
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/envynotifs/includes/class-envy-notifs-css-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envynotifs/public/partials/templates/envy-notifs-left-sidebar-inside.php:233
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/envynotifs/includes/class-envy-notifs.php:239

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

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: No descriptions were found for these screenshots #6, #7, #8 in envynotifs/assets to your readme.txt
Please take inspiration from this readme.txt

envynotifs/envy-notifs.php 85% from 13 tests

"EnvyNotifs - All-in-One Notification Management" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("envynotifs.php" instead of "envy-notifs.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin6,979 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP223595172,242
CSS5280661,883
JavaScript54628183

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity1.43
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.13
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods23
▷ Static methods28.70%
▷ Public methods1878.26%
▷ Protected methods00.00%
▷ Private methods521.74%
Functions55
▷ Named functions55100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected