84% lana-email-tester

Code Review | Lana Email Tester

WordPress plugin Lana Email Tester scored84%from 54 tests.

About plugin

  • Plugin page: lana-email-tester
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0
  • WordPress version: 6.3.1
  • First release: Dec 7, 2021
  • Latest release: Jun 15, 2022
  • Number of updates: 7
  • Update frequency: every 27.1 days
  • Top authors: lanacodes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /345 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.99ms] Passed 4 tests

Server-side resources used by Lana Email Tester
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.32 ▼6.08
Dashboard /wp-admin3.31 ▲0.0145.60 ▼5.85
Posts /wp-admin/edit.php3.36 ▲0.0145.64 ▼2.46
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.09 ▼1.57
Media Library /wp-admin/upload.php3.23 ▲0.0136.09 ▲2.04

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Lana Email Tester
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.21 ▼1.071.91 ▲0.1740.33 ▼8.55
Dashboard /wp-admin2,210 ▲224.83 ▼0.05111.14 ▲2.9640.50 ▼6.96
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0339.81 ▲4.5635.86 ▲0.48
Add New Post /wp-admin/post-new.php1,545 ▲1218.10 ▼5.22612.16 ▼75.9153.11 ▼0.09
Media Library /wp-admin/upload.php1,392 ▲14.20 ▲0.0498.52 ▼8.6140.82 ▼3.92
Lana Email Tester /wp-admin/lana-email-tester.php260.440.0618.12

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/lana-email-tester.php
    • > Network (severe)
    wp-admin/lana-email-tester.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wp mail, send email, tester, email, test email

lana-email-tester/lana-email-tester.php Passed 13 tests

Analyzing the main PHP file in "Lana Email Tester" version 1.1.0
16 characters long description:
Send test email.

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
No dangerous file extensions were detected129 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14551129

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin