10% blue-utopia-signup

Code Review | Blue Utopia Sign Up

WordPress plugin Blue Utopia Sign Up scored10%from 54 tests.

About plugin

  • Plugin page: blue-utopia-signup
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Jul 8, 2013
  • Latest release: Jul 9, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: blueUtopia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /802 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/blue-utopia-signup/blueutopiasignup.php+48
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.61ms] Passed 4 tests

This is a short check of server-side resources used by Blue Utopia Sign Up
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.445.50 ▼36.63
Dashboard /wp-admin2.05 ▼1.256.62 ▼46.16
Posts /wp-admin/edit.php2.05 ▼1.315.30 ▼40.46
Add New Post /wp-admin/post-new.php2.05 ▼3.845.10 ▼87.18
Media Library /wp-admin/upload.php2.05 ▼1.186.04 ▼27.95
Blue Utopia Sign Up /wp-admin/options-general.php?page=blueutopiasignup2.055.17

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_blueutopiavolunteerwidget
widget_blueutopiasignupwidget

Browser metrics Passed 4 tests

Checking browser requirements for Blue Utopia Sign Up
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲15713.47 ▼1.118.58 ▲6.7241.00 ▼3.55
Dashboard /wp-admin2,206 ▲265.60 ▼0.0590.07 ▼10.3340.26 ▼2.81
Posts /wp-admin/edit.php2,108 ▲82.02 ▲0.0335.01 ▲0.1934.13 ▼1.72
Add New Post /wp-admin/post-new.php1,536 ▲823.26 ▲0.22676.71 ▼21.9563.02 ▲7.80
Media Library /wp-admin/upload.php1,411 ▲144.28 ▲0.03112.22 ▲4.0750.90 ▲5.99
Blue Utopia Sign Up /wp-admin/options-general.php?page=blueutopiasignup8151.8027.2127.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/blue-utopia-signup/blueutopiasignup.php+48
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_recent-comments
    • widget_blueutopiasignupwidget
    • widget_blueutopiavolunteerwidget
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=blueutopiasignup
    • > Deprecated in wp-content/plugins/blue-utopia-signup/blueutopiasignup.php+49
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=blueutopiasignup
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in BlueUtopiaSignUpWidget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=blueutopiasignup
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in BlueUtopiaVolunteerWidget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=blueutopiasignup
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=blueutopiasignup
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=blueutopiasignup
    • > Notice in wp-content/plugins/blue-utopia-signup/assets/api.php+248
    Undefined variable: account_info

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/blue-utopia-signup/blueutopiasignup.php

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=blueutopiasignup
    • > Network (severe)
    wp-content/plugins/blue-utopia-signup/assets/style.css?ver=1.0 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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:
  • Screenshots: Please add images for these screenshots: #1 (Donate Link), #2 (Rapid Sign Up), #3 (Volunteer Sign Up)
You can look at the official readme.txt

blue-utopia-signup/blueutopiasignup.php 92% from 13 tests

The primary PHP file in "Blue Utopia Sign Up" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("blue-utopia-signup.php" instead of "blueutopiasignup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin986 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP411598822
JavaScript1131164

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity51.50
▷ Minimum class complexity1.00
▷ Maximum class complexity122.00
Average method complexity9.08
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods00.00%
▷ Public methods2080.00%
▷ Protected methods416.00%
▷ Private methods14.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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin