73% email-tools

Code Review | FS Email Tools

WordPress plugin FS Email Tools scored73%from 54 tests.

About plugin

  • Plugin page: email-tools
  • Plugin version: 1.2.4
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2
  • WordPress version: 6.3.1
  • First release: Apr 6, 2021
  • Latest release: Apr 2, 2023
  • Number of updates: 15
  • Update frequency: every 48.5 days
  • Top authors: fsylum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /799 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.25MB] [CPU: ▼2.01ms] Passed 4 tests

An overview of server-side resources used by FS Email Tools
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2342.39 ▲0.63
Dashboard /wp-admin3.60 ▲0.3052.34 ▼1.41
Posts /wp-admin/edit.php3.65 ▲0.3050.99 ▼0.14
Add New Post /wp-admin/post-new.php6.12 ▲0.2488.80 ▼7.11
Media Library /wp-admin/upload.php3.46 ▲0.2436.24 ▲4.58
Email Tools /wp-admin/tools.php?page=fs-email-tools3.4336.03

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 34 new files
Database: 1 new table, 7 new options
New tables
wp_fs_email_logs
New WordPress options
widget_recent-comments
can_compress_scripts
fs_email_tools_db_version
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for FS Email Tools
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.26 ▼0.994.80 ▲3.0043.36 ▼1.27
Dashboard /wp-admin2,213 ▲315.88 ▲0.9698.65 ▼10.0139.07 ▼2.42
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0036.57 ▼1.3535.57 ▲0.14
Add New Post /wp-admin/post-new.php1,536 ▲323.29 ▲0.07693.67 ▲23.0657.89 ▼1.95
Media Library /wp-admin/upload.php1,392 ▲74.22 ▲0.04101.63 ▼0.1845.43 ▼2.92
Email Tools /wp-admin/tools.php?page=fs-email-tools1,0022.5547.9328.99

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Zombie tables detected upon uninstall: 1 table
    • wp_fs_email_logs
  • This plugin does not fully uninstall, leaving 7 options in the database
    • fs_email_tools_db_version
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/email-tools/src/WP/Admin/ListTables/EmailLogsListTable.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Fsylum\\EmailTools\\Contracts\\Service' not found in wp-content/plugins/email-tools/src/WP/Admin/Settings.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/email-tools/templates/tabs/test-email.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/email-tools/fs-email-tools.php:17
    • > PHP Fatal error
      Uncaught Error: Interface 'Fsylum\\EmailTools\\Contracts\\Service' not found in wp-content/plugins/email-tools/src/WP/Ajax.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Fsylum\\EmailTools\\Contracts\\Service' not found in wp-content/plugins/email-tools/src/WP/Mail.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'Fsylum\\EmailTools\\Contracts\\Service' not found in wp-content/plugins/email-tools/src/WP/Cron.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'Fsylum\\EmailTools\\Contracts\\Service' not found in wp-content/plugins/email-tools/src/WP/Admin/Page.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Fsylum\\EmailTools\\WP\\Admin\\ListTables\\EmailLogsListTable' not found in wp-content/plugins/email-tools/templates/tabs/email-logs.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Fsylum\\EmailTools\\Contracts\\Service' not found in wp-content/plugins/email-tools/src/WP/Asset.php:8

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 86% from 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
3 plugin tags: mail, developer tool, email

email-tools/fs-email-tools.php 69% from 13 tests

The entry point to "FS Email Tools" version 1.2.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.9" instead of "5.6")
  • Main file name: The principal plugin file should be the same as the plugin slug ("email-tools.php" instead of "fs-email-tools.php")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("8.0" instead of "7.3")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 169 characters long)

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 detected1,710 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP283772961,699
JSON2009
CSS1001
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity11.22
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces9
Interfaces1
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods108
▷ Static methods2725.00%
▷ Public methods10092.59%
▷ Protected methods21.85%
▷ Private methods65.56%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants15
▷ Global constants426.67%
▷ Class constants1173.33%
▷ Public constants11100.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