10% sakshamapp-es-email-system-for-transaction-email

Code Review | Sakshamapp ES email system for transaction email

WordPress plugin Sakshamapp ES email system for transaction email scored10%from 54 tests.

About plugin

  • Plugin page: sakshamapp-es-ema...
  • Plugin version: 3.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.4
  • WordPress version: 6.3.1
  • First release: Apr 11, 2016
  • Latest release: Apr 8, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: susheelhbti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /538 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/sakshamapp-es-email-system-for-transaction-email/index.php+393
    Undefined variable: wpdb

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

A check of server-side resources used by Sakshamapp ES email system for transaction email
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.84 ▼5.02
Dashboard /wp-admin3.31 ▼0.0357.26 ▼5.55
Posts /wp-admin/edit.php3.37 ▲0.0143.99 ▲0.82
Add New Post /wp-admin/post-new.php5.89 ▲0.0179.29 ▼20.21
Media Library /wp-admin/upload.php3.24 ▲0.0131.27 ▼0.16
Email log /wp-admin/admin.php?page=sakshamapp_email_log3.1928.26
Sakshamapp ES /wp-admin/admin.php?page=sakshamapp_emailer_settings3.1830.02

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: 1 new table, 7 new options
New tables
sakshamapp_email_log
New WordPress options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
sakshamappES_db_version

Browser metrics Passed 4 tests

Sakshamapp ES email system for transaction email: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8114.47 ▼0.201.55 ▼0.2538.18 ▼4.44
Dashboard /wp-admin2,233 ▲485.80 ▲0.88104.06 ▼40.0833.74 ▼19.24
Posts /wp-admin/edit.php2,116 ▲242.02 ▲0.0134.53 ▼7.3835.28 ▲0.91
Add New Post /wp-admin/post-new.php1,564 ▲3618.00 ▼0.44597.98 ▼26.6958.14 ▲7.26
Media Library /wp-admin/upload.php1,415 ▲274.17 ▼0.04117.45 ▲10.3945.40 ▲2.37
Email log /wp-admin/admin.php?page=sakshamapp_email_log7852.0323.3026.27
Sakshamapp ES /wp-admin/admin.php?page=sakshamapp_emailer_settings8592.0324.3226.67

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • sakshamapp_email_log
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • sakshamappES_db_version
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=sakshamapp_emailer_settings
    • > Notice in wp-content/plugins/sakshamapp-es-email-system-for-transaction-email/index.php+121
    Undefined index: action

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sakshamapp-es-email-system-for-transaction-email/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)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Download and extract to `wp-content/plugins/`), #2 (Activate the plugin through the 'Plugins' menu in WordPress.), #3 ("Dashboard"->"Settings"->"Sakshamapp ES"), #4 (There are some examples on the settings page,)
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

sakshamapp-es-email-system-for-transaction-email/index.php 92% from 13 tests

The primary PHP file in "Sakshamapp ES email system for transaction email" version 3.1.7 is used by WordPress to initiate all plugin functionality
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 ("sakshamapp-es-email-system-for-transaction-email.php" instead of "index.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
Good job! No executable or dangerous file extensions detected244 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11449244

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions8
▷ Named functions8100.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 images were found in this plugin