84% inesta-send-mail-copy

Code Review | Inesta Send Mail Copy

WordPress plugin Inesta Send Mail Copy scored84%from 54 tests.

About plugin

  • Plugin page: inesta-send-mail-...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7
  • WordPress version: 6.3.1
  • First release: Nov 20, 2016
  • Latest release: Feb 3, 2017
  • Number of updates: 13
  • Update frequency: every 6.9 days
  • Top authors: roelv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /624 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.87ms] Passed 4 tests

An overview of server-side resources used by Inesta Send Mail Copy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0541.90 ▲3.60
Dashboard /wp-admin3.38 ▲0.0349.24 ▼18.01
Posts /wp-admin/edit.php3.49 ▲0.1450.94 ▼0.32
Add New Post /wp-admin/post-new.php5.96 ▲0.0796.71 ▼4.42
Media Library /wp-admin/upload.php3.30 ▲0.0739.51 ▼0.73
Mail Copy /wp-admin/options-general.php?page=in_mc3.2733.70

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Inesta Send Mail Copy
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.27 ▼1.034.35 ▲2.6346.27 ▲8.29
Dashboard /wp-admin2,228 ▲254.87 ▼0.0899.31 ▼15.3339.72 ▲2.60
Posts /wp-admin/edit.php2,107 ▲71.97 ▲0.0040.13 ▲3.4140.08 ▲3.27
Add New Post /wp-admin/post-new.php1,529 ▼1617.53 ▼5.62638.12 ▲17.2470.95 ▲18.91
Media Library /wp-admin/upload.php1,407 ▲74.22 ▼0.04104.90 ▼15.8945.06 ▼3.75
Mail Copy /wp-admin/options-general.php?page=in_mc8052.1827.0127.75

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

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
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
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/inesta-send-mail-copy/in_wpmail_copy.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
2 plugin tags: email, admin

inesta-send-mail-copy/in_wpmail_copy.php 85% from 13 tests

This is the main PHP file of "Inesta Send Mail Copy" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: The principal plugin file should be the same as the plugin slug ("inesta-send-mail-copy.php" instead of "in_wpmail_copy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin521 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP10124188462
PO File1121358
JSON1001

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity14.80
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods34
▷ Static methods514.71%
▷ Public methods3294.12%
▷ Protected methods00.00%
▷ Private methods25.88%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
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