89% url-emailer

Code Review | URL Emailer - Send emails by URL parameters

WordPress plugin URL Emailer - Send emails by URL parameters scored89%from 54 tests.

About plugin

  • Plugin page: url-emailer
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 22, 2022
  • Latest release: Aug 22, 2022
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: comeero (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /895 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.09MB] [CPU: ▼4.75ms] Passed 4 tests

Analyzing server-side resources used by URL Emailer - Send emails by URL parameters
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0741.32 ▼0.78
Dashboard /wp-admin3.40 ▲0.1055.53 ▲4.16
Posts /wp-admin/edit.php3.52 ▲0.1650.24 ▼1.60
Add New Post /wp-admin/post-new.php5.98 ▲0.1090.74 ▼19.41
Media Library /wp-admin/upload.php3.33 ▲0.1038.82 ▲2.81
URL Emailer /wp-admin/options-general.php?page=url-emailer-settings-page3.3036.03

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

URL Emailer - Send emails by URL parameters: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲3513.22 ▼0.911.72 ▼0.5944.65 ▲0.93
Dashboard /wp-admin2,210 ▲194.87 ▲0.01109.65 ▼10.0542.49 ▼2.52
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0241.08 ▲2.9135.46 ▲2.01
Add New Post /wp-admin/post-new.php1,545 ▲318.23 ▼0.07650.57 ▲3.6153.66 ▼10.50
Media Library /wp-admin/upload.php1,386 ▼24.22 ▼0.01100.48 ▼3.6344.12 ▲0.11
URL Emailer /wp-admin/options-general.php?page=url-emailer-settings-page9462.0226.7643.77

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 87% 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 your attention:
  • Screenshots: A description for screenshot #2 is required in url-emailer/assets to your readme.txt
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
You can take inspiration from this readme.txt

url-emailer/url-emailer.php 85% from 13 tests

The main PHP file in "URL Emailer - Send emails by URL parameters" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Description: Keep the plugin description shorter than 140 characters (currently 212 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin445 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP55419243
PO File12934109
CSS33393

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.00
▷ Minimum class complexity2.00
▷ Maximum class complexity11.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1995.00%
▷ Protected methods00.00%
▷ Private methods15.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/five-stars.png12.07KB7.87KB▼ 34.81%
public/images/cross.png2.05KB1.66KB▼ 19.31%
public/images/tick.png1.48KB1.32KB▼ 10.63%