84% fx-email-log

Code Review | f(x) Email Log

WordPress plugin f(x) Email Log scored84%from 54 tests.

About plugin

  • Plugin page: fx-email-log
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.7
  • WordPress version: 6.3.1
  • First release: Sep 21, 2016
  • Latest release: Apr 22, 2017
  • Number of updates: 11
  • Update frequency: every 19.5 days
  • Top authors: turtlepod (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active /3,675 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by f(x) Email Log
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.72 ▲4.50
Dashboard /wp-admin3.33 ▲0.0249.95 ▼1.58
Posts /wp-admin/edit.php3.38 ▲0.0248.55 ▼7.50
Add New Post /wp-admin/post-new.php5.91 ▲0.02114.81 ▲9.94
Media Library /wp-admin/upload.php3.25 ▲0.0238.07 ▲1.46
Email Log /wp-admin/tools.php?page=fx_email_log3.5440.27

Server storage [IO: ▲0.10MB] [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: 20 new files
Database: 1 new table, 8 new options
New tables
wp_fx_email_log
New WordPress options
theysaidso_admin_options
fx_email_log_db_version
db_upgraded
widget_recent-comments
fx-email-log_welcome
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for f(x) Email Log
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲7313.32 ▼1.342.07 ▲0.2244.60 ▼3.13
Dashboard /wp-admin2,240 ▲375.84 ▲0.93109.50 ▲5.3647.91 ▲5.85
Posts /wp-admin/edit.php2,123 ▲232.03 ▼0.0238.70 ▼1.0238.00 ▼2.83
Add New Post /wp-admin/post-new.php1,570 ▲1318.35 ▲0.34603.16 ▼13.8648.39 ▼4.93
Media Library /wp-admin/upload.php1,422 ▲224.22 ▲0.0096.57 ▼7.2444.72 ▼0.63
Email Log /wp-admin/tools.php?page=fx_email_log1,1351.9831.4728.02

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fx-email-log/includes/multisite.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: database, contact form 7, contact form, email log, email...

fx-email-log/fx-email-log.php Passed 13 tests

The primary PHP file in "f(x) Email Log" version 1.0.3 is used by WordPress to initiate all plugin functionality
50 characters long description:
Simple plugin to log all email sent via WordPress.

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
Success! There were no dangerous files found in this plugin1,486 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP133908881,305
CSS201127
JavaScript16841
Markdown14013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity27.14
▷ Minimum class complexity2.00
▷ Maximum class complexity125.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods85
▷ Static methods55.88%
▷ Public methods5058.82%
▷ Protected methods3338.82%
▷ Private methods22.35%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.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
There are no PNG files in this plugin