Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.64ms] Passed 4 tests
An overview of server-side resources used by Mouse cursor customizer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.45 ▼0.02 | 28.63 ▼15.91 |
Dashboard /wp-admin | 3.38 ▲0.07 | 48.55 ▼0.03 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 47.52 ▼4.36 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 95.00 ▲5.28 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.18 ▲1.74 |
Cursor Settings /wp-admin/themes.php?page=cursor-settings | 3.12 | 26.47 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Mouse cursor customizer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲196 | 13.61 ▼0.77 | 6.50 ▲4.81 | 47.17 ▲8.32 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.95 | 103.02 ▼9.58 | 39.54 ▼4.26 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.06 ▲0.07 | 39.91 ▼4.01 | 34.53 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 22.89 ▲4.52 | 578.53 ▼24.62 | 57.29 ▼0.82 |
Media Library /wp-admin/upload.php | 1,386 ▲1 | 4.24 ▲0.05 | 96.42 ▼6.82 | 41.54 ▼1.99 |
Cursor Settings /wp-admin/themes.php?page=cursor-settings | 917 | 1.97 | 31.80 | 33.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/themes.php?page=cursor-settings
- > User notice in wp-includes/functions.php+5905
Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
- > GET request to /wp-admin/themes.php?page=cursor-settings
- > Notice in wp-content/plugins/mouse-cursor-customizer/cursor-customizer.php+342
Trying to access array offset on value of type bool
- > GET request to /wp-admin/themes.php?page=cursor-settings
- > Notice in wp-content/plugins/mouse-cursor-customizer/cursor-customizer.php+388
Undefined index: use_url_link
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× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mouse-cursor-customizer/cursor-customizer.php:28
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Here will be a description for screenshot 1.png), #2 (Here will be a description for screenshot 2.png)
mouse-cursor-customizer/cursor-customizer.php 92% from 13 tests
The main PHP script in "Mouse cursor customizer" version 1.2 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("mouse-cursor-customizer.php" instead of "cursor-customizer.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected605 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 111 | 38 | 306 |
CSS | 2 | 47 | 20 | 224 |
JavaScript | 2 | 25 | 6 | 75 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
PNG images were not found in this plugin