84% reachmail-subscription-forms

Code Review | ReachMail Subscription Forms

WordPress plugin ReachMail Subscription Forms scored84%from 54 tests.

About plugin

  • Plugin page: reachmail-subscri...
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Nov 6, 2013
  • Latest release: Oct 16, 2015
  • Number of updates: 18
  • Update frequency: every 77.4 days
  • Top authors: reachmail (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

90+ active /3,426 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼5.82ms] Passed 4 tests

Analyzing server-side resources used by ReachMail Subscription Forms
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.01 ▲4.11
Dashboard /wp-admin3.31 ▼0.0348.40 ▼16.67
Posts /wp-admin/edit.php3.37 ▲0.0151.69 ▲3.15
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.65 ▼13.42
Media Library /wp-admin/upload.php3.24 ▲0.0140.57 ▲3.65

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_reachmail_subscriptionform_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for ReachMail Subscription Forms
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▼0.071.86 ▼0.1543.26 ▼0.68
Dashboard /wp-admin2,198 ▲215.61 ▲0.0793.02 ▼7.1739.97 ▼1.99
Posts /wp-admin/edit.php2,100 ▲32.00 ▼0.0240.49 ▲3.1934.25 ▲0.10
Add New Post /wp-admin/post-new.php1,526 ▼023.48 ▲0.29670.07 ▼27.6953.39 ▼1.42
Media Library /wp-admin/upload.php1,400 ▲34.12 ▼0.02113.46 ▼2.7348.05 ▼1.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_reachmail_subscriptionform_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      file_get_contents(https://go.reachmail.net/libraries/form_wizard/process_subscribe.asp): failed to open stream: HTTP request failed! HTTP/1.1 404 The Legacy Subscription id '' you requested does not exist.\r in wp-content/plugins/reachmail-subscription-forms/form_post.php on line 16
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/reachmail-subscription-forms/reachmail-subscription-forms.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: reachmail, form, marketing, email, plugin...

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

Analyzing the main PHP file in "ReachMail Subscription Forms" version 1.0.4
56 characters long description:
Add ReachMail subscription forms to your WordPress site.

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
Everything looks great! No dangerous files found in this plugin143 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP23445143

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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