78% simple-signup-form

Code Review | Simple Signup Form

WordPress plugin Simple Signup Form scored78%from 54 tests.

About plugin

  • Plugin page: simple-signup-form
  • Plugin version: 1.6.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 6, 2014
  • Latest release: Aug 15, 2023
  • Number of updates: 101
  • Update frequency: every 32.0 days
  • Top authors: pantherius (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

300+ active /40,539 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.29ms] Passed 4 tests

Analyzing server-side resources used by Simple Signup Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.68 ▲3.16
Dashboard /wp-admin3.32 ▲0.0243.15 ▼4.58
Posts /wp-admin/edit.php3.44 ▲0.0846.55 ▲1.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0278.08 ▼14.34
Media Library /wp-admin/upload.php3.25 ▲0.0234.12 ▲0.73
Simple Signup Form FREE /wp-admin/options-general.php?page=simple_signup_form5.3241.36

Server storage [IO: ▲0.58MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: 1 new table, 6 new options
New tables
wp_simple_subscription_popup
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Signup Form
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲13813.43 ▼0.868.28 ▲6.7840.24 ▲0.58
Dashboard /wp-admin2,199 ▲255.59 ▼0.0784.51 ▲0.7141.44 ▼2.91
Posts /wp-admin/edit.php2,104 ▲41.95 ▼0.0336.34 ▼0.6631.87 ▼2.96
Add New Post /wp-admin/post-new.php1,529 ▲323.39 ▼0.31675.47 ▲67.3554.07 ▲4.27
Media Library /wp-admin/upload.php1,407 ▲44.23 ▲0.04106.37 ▼0.7645.45 ▼1.78
Simple Signup Form FREE /wp-admin/options-general.php?page=simple_signup_form8,3783.7196.0890.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'simple_signup_form' not found in wp-content/plugins/simple-signup-form/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-signup-form/templates/settings.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/simple-signup-form/templates/acustom.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=simple_signup_form
    • > Rendering (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1 The specified value "!" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
    • > GET request to /wp-admin/options-general.php?page=simple_signup_form
    • > Security (warning) in unknown
    https://pantherius.com/static/plugin_directory.html 0 Mixed Content: The page at 'https://pantherius.com/static/plugin_directory.html' was loaded over HTTPS, but requested an insecure element 'http://pantherius.com/static/plugin-directory/preview1.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
    • > GET request to /wp-admin/options-general.php?page=simple_signup_form
    • > Security (warning) in unknown
    https://pantherius.com/static/plugin_directory.html 0 Mixed Content: The page at 'https://pantherius.com/static/plugin_directory.html' was loaded over HTTPS, but requested an insecure element 'http://pantherius.com/static/plugin-directory/preview2.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
    • > GET request to /wp-admin/options-general.php?page=simple_signup_form
    • > Security (warning) in unknown
    https://pantherius.com/static/plugin_directory.html 0 Mixed Content: The page at 'https://pantherius.com/static/plugin_directory.html' was loaded over HTTPS, but requested an insecure element 'http://pantherius.com/static/plugin-directory/preview3.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
    • > GET request to /wp-admin/options-general.php?page=simple_signup_form
    • > Security (warning) in unknown
    https://pantherius.com/static/plugin_directory.html 0 Mixed Content: The page at 'https://pantherius.com/static/plugin_directory.html' was loaded over HTTPS, but requested an insecure element 'http://pantherius.com/static/plugin-directory/preview4.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
    • > GET request to /wp-admin/options-general.php?page=simple_signup_form
    • > Security (warning) in unknown
    https://pantherius.com/static/plugin_directory.html 0 Mixed Content: The page at 'https://pantherius.com/static/plugin_directory.html' was loaded over HTTPS, but requested an insecure element 'http://pantherius.com/static/plugin-directory/preview5.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
    • > GET request to /wp-admin/options-general.php?page=simple_signup_form
    • > Security (warning) in unknown
    https://pantherius.com/static/plugin_directory.html 0 Mixed Content: The page at 'https://pantherius.com/static/plugin_directory.html' was loaded over HTTPS, but requested an insecure element 'http://pantherius.com/static/plugin-directory/preview6.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
    • > GET request to /wp-admin/options-general.php?page=simple_signup_form
    • > Security (warning) in unknown
    https://pantherius.com/static/plugin_directory.html 35 Mixed Content: The page at 'https://pantherius.com/static/plugin_directory.html' was loaded over HTTPS, but requested an insecure element 'http://pantherius.com/static/plugin-directory/preview1.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
    • > GET request to /wp-admin/options-general.php?page=simple_signup_form
    • > Security (warning) in unknown
    https://pantherius.com/static/plugin_directory.html 35 Mixed Content: The page at 'https://pantherius.com/static/plugin_directory.html' was loaded over HTTPS, but requested an insecure element 'http://pantherius.com/static/plugin-directory/preview2.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
    • > GET request to /wp-admin/options-general.php?page=simple_signup_form
    • > Security (warning) in unknown
    https://pantherius.com/static/plugin_directory.html 35 Mixed Content: The page at 'https://pantherius.com/static/plugin_directory.html' was loaded over HTTPS, but requested an insecure element 'http://pantherius.com/static/plugin-directory/preview3.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
    • > GET request to /wp-admin/options-general.php?page=simple_signup_form
    • > Security (warning) in unknown
    https://pantherius.com/static/plugin_directory.html 35 Mixed Content: The page at 'https://pantherius.com/static/plugin_directory.html' was loaded over HTTPS, but requested an insecure element 'http://pantherius.com/static/plugin-directory/preview4.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
    • > GET request to /wp-admin/options-general.php?page=simple_signup_form
    • > Security (warning) in unknown
    https://pantherius.com/static/plugin_directory.html 35 Mixed Content: The page at 'https://pantherius.com/static/plugin_directory.html' was loaded over HTTPS, but requested an insecure element 'http://pantherius.com/static/plugin-directory/preview5.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
    • > GET request to /wp-admin/options-general.php?page=simple_signup_form
    • > Security (warning) in unknown
    https://pantherius.com/static/plugin_directory.html 35 Mixed Content: The page at 'https://pantherius.com/static/plugin_directory.html' was loaded over HTTPS, but requested an insecure element 'http://pantherius.com/static/plugin-directory/preview6.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
    • > GET request to /wp-admin/options-general.php?page=simple_signup_form
    • > Security (severe) in unknown
    https://pantherius.com/static/plugin_directory.html 7 Mixed Content: The page at 'https://pantherius.com/static/plugin_directory.html' was loaded over HTTPS, but requested an insecure frame 'http://www.facebook.com/plugins/like.php?href=https%3A%2F%2Fwww.facebook.com%2Fpantherius&width&layout=standard&action=like&show_faces=true&share=true&height=80&appId=173514666161502'. This request has been blocked; the content must be served over HTTPS.

Optimizations

Plugin configuration 96% from 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
9 plugin tags: subscription form, subscription, signup form, sign up, social signup...

simple-signup-form/simple_signup_form.php 92% from 13 tests

The main PHP file in "Simple Signup Form" ver. 1.6.5 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-signup-form.php" instead of "simple_signup_form.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected8,218 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP415533,296
JavaScript52971902,708
CSS5164722,214

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity27.50
▷ Minimum class complexity16.00
▷ Maximum class complexity39.00
Average method complexity4.31
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods425.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
33 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
templates/assets/css/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
templates/assets/css/images/ui-bg_gloss-wave_25_333333_500x100.png1.83KB1.14KB▼ 37.89%
templates/assets/img/play.png1.26KB1.36KB0.00%
templates/assets/img/users.png0.53KB0.76KB0.00%
templates/assets/css/images/ui-bg_flat_50_5c5c5c_40x100.png0.21KB0.08KB▼ 58.77%