68% lana-email-logger

Code Review | Lana Email Logger

WordPress plugin Lana Email Logger scored68%from 54 tests.

About plugin

  • Plugin page: lana-email-logger
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Dec 11, 2021
  • Latest release: Jun 8, 2023
  • Number of updates: 10
  • Update frequency: every 54.5 days
  • Top authors: lanacodes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /485 total downloads

Benchmarks

Plugin footprint 65% 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.10MB] [CPU: ▼8.73ms] Passed 4 tests

An overview of server-side resources used by Lana Email Logger
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1046.44 ▼8.28
Dashboard /wp-admin3.42 ▲0.1155.47 ▼4.90
Posts /wp-admin/edit.php3.53 ▲0.1753.26 ▼0.96
Add New Post /wp-admin/post-new.php6.00 ▲0.1192.54 ▼20.60
Media Library /wp-admin/upload.php3.34 ▲0.1140.62 ▼1.12

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: 1 new table, 6 new options
New tables
wp_lana_email_logger_logs
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Lana Email Logger: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.25 ▼0.031.99 ▲0.2343.96 ▼0.48
Dashboard /wp-admin2,223 ▲435.62 ▲0.0187.21 ▼5.5740.28 ▼5.80
Posts /wp-admin/edit.php2,125 ▲252.00 ▼0.0136.39 ▼1.8536.68 ▼2.48
Add New Post /wp-admin/post-new.php1,547 ▲2123.02 ▼0.52655.86 ▼58.8960.46 ▼0.65
Media Library /wp-admin/upload.php1,425 ▲284.22 ▼0.09100.46 ▼17.0545.77 ▼5.03
Lana Email Logger /wp-admin/lana-email-logger.php260.420.2217.02
Settings /wp-admin/lana-email-logger-settings.php260.420.116.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_lana_email_logger_logs
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/lana-email-logger/includes/class-lana-email-logger-logs-list-table.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/lana-email-logger.php
    • > Network (severe)
    wp-admin/lana-email-logger.php - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/lana-email-logger-settings.php
    • > Network (severe)
    wp-admin/lana-email-logger-settings.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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: wp mail, send email, logger, email, log email

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

Analyzing the main PHP file in "Lana Email Logger" version 1.1.0
34 characters long description:
Logs all emails sent by WordPress.

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 detected2,128 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
JSON1001,205
PHP8307406890
CSS14218
JavaScript14815

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity19.67
▷ Minimum class complexity3.00
▷ Maximum class complexity32.00
Average method complexity2.87
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods30
▷ Static methods413.33%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
1 compressed PNG file occupies 0.03MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/plugin-header.png28.91KB29.86KB0.00%