73% emails-catch-all

Code Review | Emails Catch All

WordPress plugin Emails Catch All scored73%from 54 tests.

About plugin

  • Plugin page: emails-catch-all
  • Plugin version: 3.4.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 15, 2016
  • Latest release: Nov 14, 2023
  • Number of updates: 53
  • Update frequency: every 53.4 days
  • Top authors: Iulia Cazan (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /7,994 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.33MB] [CPU: ▼3.51ms] Passed 4 tests

An overview of server-side resources used by Emails Catch All
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3441.43 ▲3.22
Dashboard /wp-admin3.65 ▲0.3150.81 ▼11.36
Posts /wp-admin/edit.php3.76 ▲0.4157.68 ▲9.22
Add New Post /wp-admin/post-new.php6.23 ▲0.3581.83 ▼10.42
Media Library /wp-admin/upload.php3.57 ▲0.3442.76 ▲4.53
Emails Catch All /wp-admin/options-general.php?page=emails-catch-all-settings3.5536.50

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 8 new options
New tables
emails_catch_all
New WordPress options
can_compress_scripts
widget_recent-comments
secas_plugin_notice_db_ver
widget_theysaidso_widget
emails_catch_all_settings_db_ver
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Emails Catch All
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,864 ▲11714.67 ▲0.351.69 ▲0.0843.30 ▼0.28
Dashboard /wp-admin2,272 ▲945.56 ▼0.1483.05 ▼32.8978.11 ▲32.05
Posts /wp-admin/edit.php2,181 ▲812.07 ▲0.0739.85 ▲3.7137.77 ▲1.29
Add New Post /wp-admin/post-new.php1,747 ▲22122.45 ▼1.01722.96 ▲16.3343.74 ▼17.59
Media Library /wp-admin/upload.php1,477 ▲744.08 ▼0.1299.88 ▼3.4182.39 ▲36.31
Emails Catch All /wp-admin/options-general.php?page=emails-catch-all-settings1,1392.1826.5749.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • emails_catch_all
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • emails_catch_all_settings_db_ver
    • secas_plugin_notice_db_ver
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 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 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/emails-catch-all/emails-catch-all.php:39

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Requires at least: Version not formatted correctly
You can take inspiration from this readme.txt

emails-catch-all/emails-catch-all.php 85% from 13 tests

"Emails Catch All" version 3.4.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 420 characters long)
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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,110 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22074481,850
PO File1119129257
CSS2002
JavaScript1001

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.32
Average class complexity253.00
▷ Minimum class complexity253.00
▷ Maximum class complexity253.00
Average method complexity5.27
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods59
▷ Static methods5796.61%
▷ Public methods5898.31%
▷ Protected methods00.00%
▷ Private methods11.69%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants770.00%
▷ Class constants330.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon-128x128.png26.02KB13.23KB▼ 49.14%
assets/images/buy-me-a-coffee.png19.75KB7.15KB▼ 63.78%