90% emldesk-subscription-forms

Code Review | EmlDesk Subscription Forms

WordPress plugin EmlDesk Subscription Forms scored90%from 54 tests.

About plugin

  • Plugin page: emldesk-subscript...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 2, 2017
  • Latest release: Oct 25, 2017
  • Number of updates: 14
  • Update frequency: every 1.9 days
  • Top authors: emldesk (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /651 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.80ms] Passed 4 tests

An overview of server-side resources used by EmlDesk Subscription Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0436.31 ▼7.13
Dashboard /wp-admin3.34 ▲0.0444.65 ▼0.18
Posts /wp-admin/edit.php3.39 ▲0.0347.54 ▼1.65
Add New Post /wp-admin/post-new.php5.92 ▲0.0384.17 ▼13.60
Media Library /wp-admin/upload.php3.26 ▲0.0335.96 ▼0.82

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_emldesk_subscription_form_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

EmlDesk Subscription Forms: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.411.64 ▼0.1242.13 ▼5.10
Dashboard /wp-admin2,203 ▲155.82 ▼0.0899.64 ▼9.3538.06 ▼5.20
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0140.12 ▼0.6334.10 ▼1.97
Add New Post /wp-admin/post-new.php1,514 ▼817.78 ▼5.41686.80 ▼32.3178.25 ▲21.57
Media Library /wp-admin/upload.php1,388 ▲34.23 ▲0.03105.38 ▲3.7047.42 ▲1.21

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_emldesk_subscription_form_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: subscribe, emldesk, signup, form, marketing...

emldesk-subscription-forms/emldesk-subscription-forms.php Passed 13 tests

The entry point to "EmlDesk Subscription Forms" version 1.2 is a PHP file that has certain tags in its header comment area
54 characters long description:
Add EmlDesk subscription forms to your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin208 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35371208

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin