72% esms-notify

Code Review | eSMS Notify

WordPress plugin eSMS Notify scored 72% from 54 tests.

About plugin

  • Plugin page: esms-notify
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Sep 14, 2022
  • Latest release: Sep 15, 2022
  • Number of updates: 7
  • Update frequency: every 0.7 days
  • Top authors: rashedulhaquerumi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 147 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.53MB] [CPU: ▼35.02ms] Passed 4 tests

Analyzing server-side resources used by eSMS Notify
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.73 ▼2.23
Dashboard /wp-admin3.43 ▲0.1251.69 ▼0.68
Posts /wp-admin/edit.php3.54 ▲0.1850.13 ▲4.19
Add New Post /wp-admin/post-new.php3.38 ▼2.5140.24 ▼141.34
Media Library /wp-admin/upload.php3.35 ▲0.1246.75 ▲10.17
eSMS Notify /wp-admin/options-general.php?page=eSMS-settings3.2430.74

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 137 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
eSMS_settings
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by eSMS Notify
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.18 ▼1.111.72 ▲0.0140.76 ▼1.84
Dashboard /wp-admin2,204 ▲225.79 ▼0.26104.34 ▼18.5040.93 ▼3.64
Posts /wp-admin/edit.php2,090 ▲12.00 ▼0.0438.95 ▲0.2034.51 ▼1.84
Add New Post /wp-admin/post-new.php1,401 ▼11317.84 ▲0.22582.63 ▼52.4068.64 ▲20.69
Media Library /wp-admin/upload.php1,392 ▲74.19 ▼0.01109.46 ▲2.7248.59 ▲0.90
eSMS Notify /wp-admin/options-general.php?page=eSMS-settings1,1264.2274.3026.43

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • eSMS_settings
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=eSMS-settings
    • > Notice in wp-content/plugins/esms-notify/functions/settings.php+145
    Trying to access array offset on value of type bool

SRP 0% 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/esms-notify/functions/templates.php
    • > /wp-content/plugins/esms-notify/vendor/wp-user-manager/wp-optionskit/includes/views/settings-page.php
  • 103× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php:6

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: esms, sms woocommerce

esms-notify/esms.php 92% from 13 tests

The main PHP script in "eSMS Notify" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("esms-notify.php" instead of "esms.php")

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 plugin3,528 lines of code in 129 files:
LanguageFilesBlank linesComment linesLines of code
PHP1197599603,034
JSON300363
YAML3313123
JavaScript30177
CSS1011

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity2.99
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes108
▷ Abstract classes10.93%
▷ Concrete classes10799.07%
▷ Final classes00.00%
Methods161
▷ Static methods159.32%
▷ Public methods10665.84%
▷ Protected methods3421.12%
▷ Private methods2113.04%
Functions15
▷ Named functions960.00%
▷ Anonymous functions640.00%
Constants4
▷ Global constants00.00%
▷ Class constants4100.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected