89% wp-mouse-custom-cursor

Code Review | WP Mouse Custom Cursor

WordPress plugin WP Mouse Custom Cursor scored89%from 54 tests.

About plugin

  • Plugin page: wp-mouse-custom-c...
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 1, 2020
  • Latest release: Feb 6, 2023
  • Number of updates: 31
  • Update frequency: every 29.7 days
  • Top authors: sutharkaran10 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /10,462 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.42ms] Passed 4 tests

This is a short check of server-side resources used by WP Mouse Custom Cursor
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.32 ▲1.71
Dashboard /wp-admin3.31 ▼0.0445.13 ▼13.13
Posts /wp-admin/edit.php3.36 ▲0.0048.03 ▲3.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.81 ▼6.29
Media Library /wp-admin/upload.php3.23 ▲0.0033.32 ▼3.97

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Mouse Custom Cursor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲11813.82 ▼0.925.67 ▲3.7541.01 ▲0.61
Dashboard /wp-admin2,206 ▲265.91 ▲0.96107.08 ▼5.3442.37 ▼2.23
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0439.11 ▲5.2433.66 ▼3.32
Add New Post /wp-admin/post-new.php1,542 ▲2218.40 ▼4.72589.86 ▼50.1650.56 ▼4.50
Media Library /wp-admin/upload.php1,385 ▼64.40 ▲0.20106.29 ▲6.9942.31 ▼3.07

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: wordpress mouse cursor, cursor, ball, wp mouse cursor, mouse cursor for wp...

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

"WP Mouse Custom Cursor" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 186 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin269 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21945266
JavaScript1013

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 5.92MB with 4.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png1,010.00KB299.42KB▼ 70.35%
screenshot-5.png1,009.61KB297.58KB▼ 70.52%
screenshot-6.png1,009.54KB300.81KB▼ 70.20%
screenshot-2.png1,010.09KB303.72KB▼ 69.93%
screenshot-3.png1,009.56KB300.95KB▼ 70.19%