89% wpfrom-email

Code Review | WPFrom Email

WordPress plugin WPFrom Email scored89%from 54 tests.

About plugin

  • Plugin page: wpfrom-email
  • Plugin version: 1.9.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Jul 25, 2019
  • Latest release: Nov 8, 2023
  • Number of updates: 43
  • Update frequency: every 36.5 days
  • Top authors: endurox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /9,569 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
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.83ms] Passed 4 tests

Analyzing server-side resources used by WPFrom Email
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0741.95 ▲0.56
Dashboard /wp-admin3.37 ▲0.0748.34 ▼0.27
Posts /wp-admin/edit.php3.49 ▲0.1350.92 ▲4.45
Add New Post /wp-admin/post-new.php5.95 ▲0.0785.12 ▼11.75
Media Library /wp-admin/upload.php3.30 ▲0.0735.38 ▲0.15
WPFrom Email /wp-admin/options-general.php?page=wpfrom-email3.2635.43

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPFrom Email
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4714.24 ▲0.311.65 ▼0.0340.81 ▼1.88
Dashboard /wp-admin2,196 ▲155.62 ▲0.0091.01 ▼17.7036.42 ▼3.25
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0835.79 ▼1.5732.24 ▼2.71
Add New Post /wp-admin/post-new.php1,529 ▼022.97 ▼0.42683.90 ▲21.6365.48 ▲9.40
Media Library /wp-admin/upload.php1,407 ▲74.19 ▲0.0294.56 ▼7.2440.54 ▼2.23
WPFrom Email /wp-admin/options-general.php?page=wpfrom-email1,0101.9725.1433.14

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (WPFrom Email Settings page located under "Settings > WPFrom Email".), #2 (WPFrom Admin Dashboard notice of disabled emails option triggered.)
The official readme.txt might help

wpfrom-email/wpfrom-email.php 92% from 13 tests

The entry point to "WPFrom Email" version 1.9.2 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected386 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35987386

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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.11MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wpfrom-logo.png28.64KB9.94KB▼ 65.29%
screenshot-1.png72.11KB34.80KB▼ 51.74%
screenshot-2.png11.45KB4.63KB▼ 59.56%