68% kv-send-email-from-admin

Code Review | Kv Compose Email From Dashboard

WordPress plugin Kv Compose Email From Dashboard scored68%from 54 tests.

About plugin

  • Plugin page: kv-send-email-fro...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.7
  • WordPress version: 6.3.1
  • First release: May 19, 2014
  • Latest release: Apr 26, 2017
  • Number of updates: 16
  • Update frequency: every 67.1 days
  • Top authors: kvvaradha (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /1,764 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.10MB] [CPU: ▼6.26ms] 75% from 4 tests

A check of server-side resources used by Kv Compose Email From Dashboard
Please have a look at the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 899.00ms on /wp-admin/admin.php?page=kvcodes)
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2244.81 ▲7.75
Dashboard /wp-admin3.40 ▲0.0551.25 ▼11.87
Posts /wp-admin/edit.php3.51 ▲0.1546.29 ▲0.78
Add New Post /wp-admin/post-new.php5.98 ▲0.0983.95 ▼17.52
Media Library /wp-admin/upload.php3.32 ▲0.0937.07 ▲3.59
e-Mail Settings /wp-admin/admin.php?page=kv_email_settings3.2834.80
Kvcodes /wp-admin/admin.php?page=kvcodes3.38899.00
e-Mail /wp-admin/admin.php?page=kv_email3.2931.58

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables
wp_kvcodes_email
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Kv Compose Email From Dashboard: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.20 ▼0.081.64 ▲0.0943.63 ▲2.14
Dashboard /wp-admin2,226 ▲455.51 ▼0.1987.78 ▼8.1080.92 ▲41.34
Posts /wp-admin/edit.php2,128 ▲281.97 ▼0.0233.43 ▼1.6534.73 ▼0.56
Add New Post /wp-admin/post-new.php1,559 ▲3018.29 ▼4.78653.85 ▲21.0960.08 ▲9.07
Media Library /wp-admin/upload.php1,425 ▲314.18 ▲0.0195.26 ▼3.1869.21 ▲29.30
e-Mail Settings /wp-admin/admin.php?page=kv_email_settings8852.0023.0926.79
Kvcodes /wp-admin/admin.php?page=kvcodes1,0253.7155.0058.51
e-Mail /wp-admin/admin.php?page=kv_email9982.0025.2426.84

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_kvcodes_email
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/kv-send-email-from-admin/admin-class.php on line 4
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/kv-send-email-from-admin/admin-class.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/kv-send-email-from-admin/admin-class.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/kv-send-email-from-admin/admin-class.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/kv-send-email-from-admin/admin-class.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/kv-send-email-from-admin/admin-class.php on line 4

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/admin.php?page=kvcodes
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'ambient-light-sensor'.
    • > GET request to /wp-admin/admin.php?page=kvcodes
    • > Security (warning) in unknown
    security - Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'.

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (Email Interface.), #2 (My plugins page.)
The official readme.txt might help

kv-send-email-from-admin/kv_compose_email from dashboard.php 92% from 13 tests

The principal PHP file in "Kv Compose Email From Dashboard" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("kv-send-email-from-admin.php" instead of "kv_compose_email from dashboard.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
No dangerous file extensions were detected506 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP39414450
CSS12056

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png83.09KB33.89KB▼ 59.22%
images/kv_logo.png1.19KB0.56KB▼ 53.03%
screenshot-1.png22.75KB11.64KB▼ 48.83%