73% e2u-ajax-subscribe-newsletter

Code Review | E2U AJAX Subscribe Newsletter

WordPress plugin E2U AJAX Subscribe Newsletter scored 73% from 54 tests.

About plugin

  • Plugin page: e2u-ajax-subscrib...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 6.3.1
  • First release: Feb 4, 2021
  • Latest release: Jul 5, 2021
  • Number of updates: 10
  • Update frequency: every 15.2 days
  • Top authors: sajidztech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 431 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
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▲2.15ms] Passed 4 tests

Analyzing server-side resources used by E2U AJAX Subscribe Newsletter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1842.68 ▼2.00
Dashboard /wp-admin3.35 ▲0.0551.53 ▲5.52
Posts /wp-admin/edit.php3.40 ▲0.0553.92 ▲5.51
Add New Post /wp-admin/post-new.php5.95 ▲0.0795.60 ▲0.54
Media Library /wp-admin/upload.php3.28 ▲0.0540.42 ▲4.54

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: 2 new tables, 6 new options
New tables
wp_e2u_subscribe_field_design
wp_e2u_subscribe_newsletter_list
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by E2U AJAX Subscribe Newsletter
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲15513.74 ▼0.635.38 ▲3.0538.31 ▼5.79
Dashboard /wp-admin2,224 ▲334.89 ▲0.02111.04 ▼3.8841.86 ▼5.37
Posts /wp-admin/edit.php2,107 ▲152.03 ▲0.0340.74 ▲0.7334.65 ▼2.99
Add New Post /wp-admin/post-new.php1,542 ▲518.22 ▼4.90632.04 ▼20.3454.35 ▼5.09
Media Library /wp-admin/upload.php1,400 ▲94.24 ▲0.00100.07 ▼2.5843.89 ▼0.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Zombie tables detected upon uninstall: 2 tables
    • wp_e2u_subscribe_newsletter_list
    • wp_e2u_subscribe_field_design
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/e2u-ajax-subscribe-newsletter/index.php
    • > /wp-content/plugins/e2u-ajax-subscribe-newsletter/subscribe.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 79% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes: Please take inspiration from this readme.txt

e2u-ajax-subscribe-newsletter/subscribe.php 69% from 13 tests

Analyzing the main PHP file in "E2U AJAX Subscribe Newsletter" version 1.0.0
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 250 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("e2u-ajax-subscribe-newsletter.php" instead of "subscribe.php")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("/subscribe_newsletter")
  • Requires at least: The required version number did not match the one declared in readme.txt ("4.7" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin341 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP21922202
CSS210136
JavaScript1003

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin