10% blue-utopia

Code Review | Blue Utopia Donate Now

WordPress plugin Blue Utopia Donate Now scored 10% from 54 tests.

About plugin

  • Plugin page: blue-utopia
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 5.8.1
  • First release: May 21, 2013
  • Latest release: Jun 5, 2013
  • Number of updates: 36
  • Update frequency: every 0.4 days
  • Top authors: blueUtopia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,289 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/blue-utopia/blueutopia.php+45
    Function create_function() is deprecated

Server metrics [RAM: ▼1.78MB] [CPU: ▼191.63ms] Passed 4 tests

This is a short check of server-side resources used by Blue Utopia Donate Now
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.85 ▼0.865.49 ▼14.52
Dashboard /wp-admin1.87 ▼1.186.55 ▼42.88
Posts /wp-admin/edit.php1.87 ▼1.235.74 ▼40.53
Add New Post /wp-admin/post-new.php1.87 ▼3.565.72 ▼652.98
Media Library /wp-admin/upload.php1.87 ▼1.135.77 ▼30.11
Blue Utopia Donate Now /wp-admin/options-general.php?page=blueutopiadonate1.876.10

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options
widget_blueutopiadonatewidget

Browser metrics Passed 4 tests

An overview of browser requirements for Blue Utopia Donate Now
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.83 ▲0.2811.14 ▲2.7848.09 ▼3.01
Dashboard /wp-admin2,978 ▲445.91 ▼0.05143.42 ▼3.97108.19 ▼5.04
Posts /wp-admin/edit.php2,744 ▲52.71 ▲0.0061.19 ▼7.3786.94 ▲0.87
Add New Post /wp-admin/post-new.php1,501 ▼18218.82 ▲0.12427.01 ▲25.28107.39 ▼1.21
Media Library /wp-admin/upload.php1,812 ▲25.01 ▼0.04156.65 ▼12.33114.23 ▲4.21
Blue Utopia Donate Now /wp-admin/options-general.php?page=blueutopiadonate1,0292.1058.3176.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/blue-utopia/blueutopia.php+45
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • widget_blueutopiadonatewidget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=blueutopiadonate
    • > Deprecated in wp-content/plugins/blue-utopia/blueutopia.php+45
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=blueutopiadonate
    • > User deprecated in wp-includes/functions.php+5304
    The called constructor method for WP_Widget in BlueUtopiaDonateWidget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=blueutopiadonate
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=blueutopiadonate
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=blueutopiadonate
    • > Notice in wp-content/plugins/blue-utopia/assets/api.php+171
    Undefined variable: account_info

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
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/blue-utopia/blueutopia.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
You can take inspiration from this readme.txt

blue-utopia/blueutopia.php 92% from 13 tests

The main PHP script in "Blue Utopia Donate Now" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("blue-utopia.php" instead of "blueutopia.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected682 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP36638385
CSS11340297

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity45.50
▷ Minimum class complexity35.00
▷ Maximum class complexity56.00
Average method complexity5.68
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1789.47%
▷ Protected methods00.00%
▷ Private methods210.53%
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
There were not PNG files found in your plugin