10% streamsend-sign-up-form

Code Review | StreamSend for WordPress - Official Plugin

WordPress plugin StreamSend for WordPress - Official Plugin scored10%from 54 tests.

About plugin

  • Plugin page: streamsend-sign-u...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Apr 2, 2015
  • Latest release: Sep 18, 2015
  • Number of updates: 10
  • Update frequency: every 17.1 days
  • Top authors: ezpublishing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /883 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/streamsend-sign-up-form/widget/class-ss-widget.php+104
    syntax error, unexpected 'add_action' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST)

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

A check of server-side resources used by StreamSend for WordPress - Official Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.51 ▲0.85
Dashboard /wp-admin3.31 ▲0.0049.00 ▼3.15
Posts /wp-admin/edit.php3.36 ▲0.0049.71 ▼0.75
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.33 ▼5.10
Media Library /wp-admin/upload.php3.23 ▲0.0041.35 ▲3.37

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

StreamSend for WordPress - Official Plugin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.041.64 ▼0.3138.88 ▼2.80
Dashboard /wp-admin2,192 ▲155.54 ▲0.0394.65 ▼4.3541.25 ▼2.58
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0535.20 ▼4.6732.10 ▼9.93
Add New Post /wp-admin/post-new.php1,526 ▼222.98 ▼0.09666.85 ▲18.2155.73 ▲5.13
Media Library /wp-admin/upload.php1,400 ▲64.14 ▼0.01112.54 ▲6.4446.29 ▲1.77

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/streamsend-sign-up-form/captcha/example-form.php
    • > /wp-content/plugins/streamsend-sign-up-form/captcha/captcha.php
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      include_once(STREAMSEND_PATH/class-ss-form.php): failed to open stream: No such file or directory in wp-content/plugins/streamsend-sign-up-form/shortcode/class-ss-shortcode.php on line 3
    • > PHP Warning
      include_once(): Failed opening 'STREAMSEND_PATH/class-ss-form.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/streamsend-sign-up-form/shortcode/class-ss-shortcode.php on line 3
    • > PHP Parse error
      syntax error, unexpected 'add_action' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in wp-content/plugins/streamsend-sign-up-form/widget/class-ss-widget.php on line 104
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/streamsend-sign-up-form/start.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/streamsend-sign-up-form/shortcode/class-ss-shortcode.php:6
    • > PHP Parse error
      syntax error, unexpected 'add_action' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in wp-content/plugins/streamsend-sign-up-form/widget/class-ss-widget.php on line 104
    • > PHP Warning
      Use of undefined constant STREAMSEND_PATH - assumed 'STREAMSEND_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/streamsend-sign-up-form/shortcode/class-ss-shortcode.php on line 3
    • > PHP Notice
      Undefined index: formtype in wp-content/plugins/streamsend-sign-up-form/captcha/captcha.php on line 207

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% 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: Please specify the plugin name on the first line ( === streamsend-sign-up-form === )
  • Contributors: There were no tags found
  • Contributors: Plugin contributors field is missing
The official readme.txt might help

streamsend-sign-up-form/start.php 92% from 13 tests

The principal PHP file in "StreamSend for WordPress - Official Plugin" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("streamsend-sign-up-form.php" instead of "start.php")

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
Success! There were no dangerous files found in this plugin2,206 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP1680569,1952,206

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity24.45
▷ Minimum class complexity1.00
▷ Maximum class complexity82.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity32.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes00.00%
Methods142
▷ Static methods64.23%
▷ Public methods13393.66%
▷ Protected methods96.34%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.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
No PNG images were found in this plugin