77% easy-custom-cursor

Code Review | Easy Custom Cursor

WordPress plugin Easy Custom Cursor scored77%from 54 tests.

About plugin

  • Plugin page: easy-custom-cursor
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.1
  • WordPress version: 6.3.1
  • First release: Aug 18, 2022
  • Latest release: Sep 20, 2022
  • Number of updates: 5
  • Update frequency: every 7.0 days
  • Top authors: wpgrids (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /242 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲2.10MB] [CPU: ▼0.27ms] Passed 4 tests

This is a short check of server-side resources used by Easy Custom Cursor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /6.64 ▲3.1853.42 ▲8.13
Dashboard /wp-admin5.41 ▲2.0751.09 ▼10.93
Posts /wp-admin/edit.php5.47 ▲2.1151.07 ▲6.50
Add New Post /wp-admin/post-new.php7.93 ▲2.0592.77 ▼3.64
Media Library /wp-admin/upload.php5.38 ▲2.1643.34 ▲7.00

Server storage [IO: ▲2.64MB] [DB: ▲0.18MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 278 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Custom Cursor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2914.72 ▲0.441.75 ▼0.0238.14 ▼7.63
Dashboard /wp-admin2,195 ▲155.52 ▼0.1485.59 ▼4.9936.26 ▼2.65
Posts /wp-admin/edit.php2,100 ▲31.98 ▲0.0135.88 ▼0.4131.28 ▼2.24
Add New Post /wp-admin/post-new.php1,528 ▲223.16 ▲0.15605.62 ▲14.5758.05 ▲5.93
Media Library /wp-admin/upload.php1,403 ▲64.19 ▼0.02104.43 ▲6.8746.60 ▲3.76

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
  • 7× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/easy-custom-cursor/lib/controls/views/textarea.php
    • > /wp-content/plugins/easy-custom-cursor/lib/controls/views/select.php
    • > /wp-content/plugins/easy-custom-cursor/lib/controls/views/generic.php
    • > /wp-content/plugins/easy-custom-cursor/lib/controls/views/color.php
    • > /wp-content/plugins/easy-custom-cursor/lib/controls/views/radio.php
    • > /wp-content/plugins/easy-custom-cursor/lib/controls/views/number.php
    • > /wp-content/plugins/easy-custom-cursor/lib/controls/views/code.php
  • 75× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-custom-cursor/includes/Assets.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field_Select' not found in wp-content/plugins/easy-custom-cursor/lib/field/class-kirki-field-preset.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Output' not found in wp-content/plugins/easy-custom-cursor/lib/modules/css/field/class-kirki-output-field-dimensions.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_theme_mod() in wp-content/plugins/easy-custom-cursor/includes/View/Coursor.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki' not found in wp-content/plugins/easy-custom-cursor/includes/customizer/old/cart-icon-box-style.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field_Kirki_Generic' not found in wp-content/plugins/easy-custom-cursor/lib/field/class-kirki-field-generic.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/easy-custom-cursor/lib/field/class-kirki-field-select.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/easy-custom-cursor/lib/field/class-kirki-field-number.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/easy-custom-cursor/lib/field/class-kirki-field-color-palette.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'Kirki_Field' not found in wp-content/plugins/easy-custom-cursor/lib/field/class-kirki-field-image.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please add at least on tag
  • Donate link: Please fix this invalid url: ""
Please take inspiration from this readme.txt

easy-custom-cursor/easy-custom-cursor.php 77% from 13 tests

"Easy Custom Cursor" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Git Repository: An alternative Git repository was detected
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 198 characters long)

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
Good job! No executable or dangerous file extensions detected43,099 lines of code in 258 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript883,6052,50113,890
CSS82,4951611,353
PHP1551,7776,8289,372
JSON4008,318
SVG200139
YAML17027

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity9.55
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity3.53
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes131
▷ Abstract classes00.00%
▷ Concrete classes131100.00%
▷ Final classes86.11%
Methods442
▷ Static methods10022.62%
▷ Public methods24154.52%
▷ Protected methods18241.18%
▷ Private methods194.30%
Functions33
▷ Named functions1030.30%
▷ Anonymous functions2369.70%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.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
8 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/assets/images/3cr.png0.91KB0.32KB▼ 64.81%
lib/assets/images/jquery.fs.stepper-arrows.png0.30KB0.18KB▼ 40.52%
lib/assets/images/3cm.png0.91KB0.25KB▼ 72.00%
lib/assets/images/2cr.png0.85KB0.27KB▼ 68.58%
lib/assets/images/1c.png0.77KB0.15KB▼ 80.03%