68% ifs-simple-e-mail-management

Code Review | Plugin Name: IFS Simple Mailing List Mailer

WordPress plugin Plugin Name: IFS Simple Mailing List Mailer scored68%from 54 tests.

About plugin

  • Plugin page: ifs-simple-e-mail...
  • Plugin version: 1.71
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Jul 13, 2013
  • Latest release: May 15, 2020
  • Number of updates: 100
  • Update frequency: every 25.1 days
  • Top authors: guusifs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,739 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼7.68ms] Passed 4 tests

An overview of server-side resources used by Plugin Name: IFS Simple Mailing List Mailer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1938.83 ▼1.60
Dashboard /wp-admin3.49 ▲0.1951.71 ▼0.87
Posts /wp-admin/edit.php3.61 ▲0.2551.37 ▼3.32
Add New Post /wp-admin/post-new.php6.07 ▲0.1985.98 ▼24.94
Media Library /wp-admin/upload.php3.42 ▲0.1942.57 ▲5.58
Add e-mail address /wp-admin/admin.php?page=add-email3.3835.45
Configuration options /wp-admin/admin.php?page=ifs-mailer-configuration3.3935.49
View e-mail list /wp-admin/admin.php?page=view-email3.3835.60
Create/send e-mail /wp-admin/admin.php?page=create-send-email3.5039.93
Edit e-mail address /wp-admin/admin.php?page=edit-email3.3831.41
IFS Mass Mail /wp-admin/admin.php?page=ifs-management3.3833.71

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables
wp_ifs_mailinglist
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
ifs_default_batch
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Plugin Name: IFS Simple Mailing List Mailer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲15713.69 ▼0.698.26 ▲6.2943.34 ▲0.66
Dashboard /wp-admin2,264 ▲615.85 ▲0.96108.15 ▲2.8440.62 ▲0.52
Posts /wp-admin/edit.php2,146 ▲432.02 ▲0.0241.23 ▲1.4239.03 ▼0.20
Add New Post /wp-admin/post-new.php1,579 ▲3423.15 ▲0.04660.93 ▼12.2261.52 ▲4.22
Media Library /wp-admin/upload.php1,446 ▲434.26 ▲0.1397.52 ▼14.1449.74 ▲1.49
Add e-mail address /wp-admin/admin.php?page=add-email9542.0223.6625.70
Configuration options /wp-admin/admin.php?page=ifs-mailer-configuration9402.0123.5626.44
View e-mail list /wp-admin/admin.php?page=view-email8192.1824.1627.20
Create/send e-mail /wp-admin/admin.php?page=create-send-email1,4072.0125.5730.46
Edit e-mail address /wp-admin/admin.php?page=edit-email1,0282.0122.1524.02
IFS Mass Mail /wp-admin/admin.php?page=ifs-management9012.1222.8026.01

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_ifs_mailinglist
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • ifs_default_batch
    • widget_theysaidso_widget

Smoke tests 50% 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 0% 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
Please fix the following items
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/ifs-simple-e-mail-management/includes/send-e-mail.php
    • > /wp-content/plugins/ifs-simple-e-mail-management/includes/ifs-backend.php
    • > /wp-content/plugins/ifs-simple-e-mail-management/includes/main-lib.php
    • > /wp-content/plugins/ifs-simple-e-mail-management/includes/main-lib.2013.06.18.php
    • > /wp-content/plugins/ifs-simple-e-mail-management/includes/configure.php
    • > /wp-content/plugins/ifs-simple-e-mail-management/includes/add_mini_lib.php
    • > /wp-content/plugins/ifs-simple-e-mail-management/includes/ifs-frontend.php
    • > /wp-content/plugins/ifs-simple-e-mail-management/includes/main-libfe.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ifs-simple-e-mail-management/ifs-simple-e-mail-management.php on line 16
    • > PHP Warning
      require_once(ABSPATH/wp-content/plugins/ifs-simple-e-mail-management/includes/add_mini_lib.php): failed to open stream: No such file or directory in wp-content/plugins/ifs-simple-e-mail-management/ifs-simple-e-mail-management.php on line 16
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATH/wp-content/plugins/ifs-simple-e-mail-management/includes/add_mini_lib.php' (include_path='.:/usr/share/php') in wp-content/plugins/ifs-simple-e-mail-management/ifs-simple-e-mail-management.php on line 16

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === Plugin Name: IFS Simple Mailing List Mailer === )
You can look at the official readme.txt

ifs-simple-e-mail-management/ifs-simple-e-mail-management.php Passed 13 tests

"Plugin Name: IFS Simple Mailing List Mailer" version 1.71's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
54 characters long description:
IFS e-mail management module for simple mass mailings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,516 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP91722542,466
JavaScript14550

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.37
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%
Functions53
▷ Named functions53100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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
No PNG images were found in this plugin