10% email-suscripcion

Code Review | Emailing Subscription

WordPress plugin Emailing Subscription scored 10% from 54 tests.

About plugin

  • Plugin page: email-suscripcion
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.1
  • WordPress version: 5.8.1
  • First release: Apr 18, 2013
  • Latest release: Jul 11, 2015
  • Number of updates: 30
  • Update frequency: every 27.1 days
  • Top authors: seballero (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active / 6,205 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/email-suscripcion/emailing-lista.php+231
    Methods with the same name as their class will not be constructors in a future version of PHP; pagination_mailing has a deprecated constructor

Server metrics [RAM: ▼1.73MB] [CPU: ▼183.56ms] Passed 4 tests

Analyzing server-side resources used by Emailing Subscription
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.90 ▼0.826.36 ▼18.26
Dashboard /wp-admin1.92 ▼1.146.27 ▼37.88
Posts /wp-admin/edit.php1.92 ▼1.196.92 ▼32.39
Add New Post /wp-admin/post-new.php1.92 ▼3.515.80 ▼641.80
Media Library /wp-admin/upload.php1.92 ▼1.085.81 ▼22.15

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 4 new files
Database: 1 new table, 2 new options
New tables
wp_emailinglist
New WordPress options
emailing_db_version
widget_mailing_list14_widget

Browser metrics Passed 4 tests

A check of browser resources used by Emailing Subscription
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12715.78 ▲0.227.81 ▼2.0046.16 ▼9.65
Dashboard /wp-admin3,012 ▲786.16 ▲0.19145.74 ▼3.27110.98 ▼7.73
Posts /wp-admin/edit.php2,759 ▲202.70 ▲0.0167.80 ▼4.0493.19 ▼1.20
Add New Post /wp-admin/post-new.php1,685 ▲18718.90 ▲0.09388.10 ▲26.29109.42 ▼3.12
Media Library /wp-admin/upload.php1,827 ▲765.10 ▲0.10184.93 ▲32.36147.67 ▲23.64

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% 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
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/email-suscripcion/emailing-lista.php+231
    Methods with the same name as their class will not be constructors in a future version of PHP; pagination_mailing has a deprecated constructor
  • Zombie tables were found after uninstall: 1 table
    • wp_emailinglist
  • Zombie WordPress options were found after uninstall: 2 options
    • emailing_db_version
    • widget_mailing_list14_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/email-suscripcion/emailing-lista.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: users, mail, subscription, e-mailing, emailing...

email-suscripcion/emailing-lista.php 85% from 13 tests

This is the main PHP file of "Emailing Subscription" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("email-suscripcion.php" instead of "emailing-lista.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected459 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP19377404
PO File1184255

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity16.50
▷ Minimum class complexity4.00
▷ Maximum class complexity29.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods21
▷ Static methods00.00%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin