89% imitate-email

Code Review | Imitate Email

WordPress plugin Imitate Email scored89%from 54 tests.

About plugin

  • Plugin page: imitate-email
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.2
  • WordPress version: 6.3.1
  • First release: Oct 2, 2023
  • Latest release: Oct 2, 2023
  • Number of updates: 5
  • Update frequency: every 3.4 days
  • Top authors: markimitate (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /24 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.96ms] Passed 4 tests

Server-side resources used by Imitate Email
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.93 ▼4.51
Dashboard /wp-admin3.33 ▲0.0243.86 ▼4.62
Posts /wp-admin/edit.php3.38 ▲0.0246.48 ▼3.10
Add New Post /wp-admin/post-new.php5.93 ▲0.0480.46 ▼27.60
Media Library /wp-admin/upload.php3.25 ▲0.0236.75 ▼1.56
Imitate Email /wp-admin/options-general.php?page=imitate-email3.2232.25

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Imitate Email
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,338 ▲60316.64 ▲1.9619.05 ▲17.3642.32 ▲2.28
Dashboard /wp-admin2,477 ▲2897.06 ▲2.18135.83 ▲19.5849.06 ▲5.44
Posts /wp-admin/edit.php2,369 ▲2803.82 ▲1.6454.90 ▲13.0238.45 ▲0.74
Add New Post /wp-admin/post-new.php6,569 ▲5,05027.03 ▲3.68925.72 ▲307.1972.51 ▲11.99
Media Library /wp-admin/upload.php1,665 ▲2776.31 ▲2.09122.17 ▲25.8846.01 ▲2.86
Imitate Email /wp-admin/options-general.php?page=imitate-email1,1173.5142.0838.07

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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 errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (Imitate Email application), #2 (The Imitate Email embedded viewer inside WordPress), #3 (The Imitate Email settings page), #4 (The Imitate Email embeddable email viewer), #5 (Programmatic email code via Web Sockets)
  • Contributors: Plugin contributors not specified
The official readme.txt might help

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

"Imitate Email" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 218 characters long)

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
Everything looks great! No dangerous files found in this plugin246 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9113434246

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity2.43
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods30
▷ Static methods26.67%
▷ Public methods2583.33%
▷ Protected methods00.00%
▷ Private methods516.67%
Functions3
▷ Named functions3100.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
No PNG files were detected