73% ultimate-css-gradient-maker

Code Review | Ultimate CSS Gradient Maker

WordPress plugin Ultimate CSS Gradient Maker scored73%from 54 tests.

About plugin

  • Plugin page: ultimate-css-grad...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0.2
  • WordPress version: 6.3.1
  • First release: Feb 28, 2018
  • Latest release: Dec 20, 2018
  • Number of updates: 6
  • Update frequency: every 49.2 days
  • Top authors: corporatezen222 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /937 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.66MB] [CPU: ▼25.53ms] Passed 4 tests

An overview of server-side resources used by Ultimate CSS Gradient Maker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1240.79 ▼0.90
Dashboard /wp-admin3.17 ▼0.1428.38 ▼23.36
Posts /wp-admin/edit.php3.48 ▲0.1245.95 ▼4.82
Add New Post /wp-admin/post-new.php3.26 ▼2.6435.88 ▼67.78
Media Library /wp-admin/upload.php3.26 ▲0.0329.66 ▼6.16
All Gradients /wp-admin/edit.php?post_type=ucgm_gradient_cpt3.2931.45
Add New /wp-admin/post-new.php?post_type=ucgm_gradient_cpt3.2032.92

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Ultimate CSS Gradient Maker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,834 ▲8813.34 ▼1.044.59 ▲2.8942.67 ▼2.11
Dashboard /wp-admin2,234 ▲465.85 ▲0.9598.85 ▼2.8239.22 ▲2.90
Posts /wp-admin/edit.php2,136 ▲472.14 ▲0.0937.60 ▼1.0535.85 ▲3.14
Add New Post /wp-admin/post-new.php1,563 ▲2123.25 ▲5.08675.67 ▲44.8952.55 ▼0.70
Media Library /wp-admin/upload.php1,419 ▲374.21 ▼0.0196.39 ▼8.1740.86 ▼2.50
All Gradients /wp-admin/edit.php?post_type=ucgm_gradient_cpt1,0951.9530.8442.77
Add New /wp-admin/post-new.php?post_type=ucgm_gradient_cpt1,7812.8454.8434.35

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 25% 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
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=ucgm_gradient_cpt
    • > Notice in wp-content/plugins/ultimate-css-gradient-maker/ultimate-css-gradient-maker.php+394
    Trying to get property 'post_type' of non-object

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ultimate-css-gradient-maker/ultimate-css-gradient-maker.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
    • > GET request to /wp-admin/post-new.php?post_type=ucgm_gradient_cpt
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).live is not a function" "TypeError: $(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/ultimate-css-gradient-maker/js/ucgm_admin.js?ver=6.3.1:77:18)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/post-new.php?post_type=ucgm_gradient_cpt
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).live is not a function

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: responsive, shortcode, css, gradient maker, gradient...

ultimate-css-gradient-maker/ultimate-css-gradient-maker.php Passed 13 tests

The main file in "Ultimate CSS Gradient Maker" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
102 characters long description:
Wrap any page or post content in a completely customizable css background gradient, quickly and easily

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 plugin683 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP111445505
JavaScript1208106
CSS1181272

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.60
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions1493.33%
▷ Anonymous functions16.67%
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