83% custom-cursor-for-wp

Code Review | Custom Cursor For WP

WordPress plugin Custom Cursor For WP scored83%from 54 tests.

About plugin

  • Plugin page: custom-cursor-for-wp
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Jan 31, 2022
  • Latest release: Jan 31, 2022
  • Number of updates: 6
  • Update frequency: every 1.5 days
  • Top authors: softices (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /12,048 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼2.96ms] Passed 4 tests

Server-side resources used by Custom Cursor For WP
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1043.57 ▲2.39
Dashboard /wp-admin3.42 ▲0.1144.92 ▼11.18
Posts /wp-admin/edit.php3.47 ▲0.1149.06 ▼2.63
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.76 ▲0.40
Media Library /wp-admin/upload.php3.34 ▲0.1138.39 ▲1.59

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Cursor For WP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲12413.55 ▼0.695.56 ▲3.5639.42 ▼7.03
Dashboard /wp-admin2,219 ▲285.79 ▲0.89104.43 ▼11.5642.87 ▼0.51
Posts /wp-admin/edit.php2,102 ▲132.06 ▲0.0538.77 ▲2.8835.45 ▲2.09
Add New Post /wp-admin/post-new.php1,547 ▲3323.27 ▲5.78660.86 ▼67.9852.27 ▼10.72
Media Library /wp-admin/upload.php1,398 ▲104.18 ▼0.0495.58 ▼6.9643.30 ▼2.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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 fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/custom-cursor-for-wp/custom-cursor-for-wp.php:15

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 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: These screenshots need descriptions #1, #2, #3, #4, #5, #6 in custom-cursor-for-wp/assets to your readme.txt
You can look at the official readme.txt

custom-cursor-for-wp/custom-cursor-for-wp.php 92% from 13 tests

The main file in "Custom Cursor For WP" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 299 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,283 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP117321,282
CSS1151

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There are no PNG files in this plugin