Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.89MB] [CPU: ▼37.72ms] Passed 4 tests
Analyzing server-side resources used by Beautify Cursor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 29.40 ▼11.70 |
Dashboard /wp-admin | 3.07 ▼0.28 | 25.97 ▼43.73 |
Posts /wp-admin/edit.php | 3.07 ▼0.29 | 29.25 ▼21.39 |
Add New Post /wp-admin/post-new.php | 3.07 ▼2.82 | 27.05 ▼73.10 |
Media Library /wp-admin/upload.php | 3.07 ▼0.16 | 24.93 ▼12.65 |
Cursor Options /wp-admin/options-general.php?page=cursor-options | 3.07 | 25.90 |
Server storage [IO: ▲0.97MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 91 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Beautify Cursor
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲174 | 14.83 ▲0.40 | 2.00 ▼0.14 | 52.63 ▲8.77 |
Dashboard /wp-admin | 2,364 ▲190 | 6.45 ▲0.84 | 120.25 ▲30.43 | 42.96 ▲3.30 |
Posts /wp-admin/edit.php | 2,292 ▲192 | 3.57 ▲1.56 | 56.99 ▲21.26 | 35.69 ▼1.26 |
Add New Post /wp-admin/post-new.php | 1,708 ▲176 | 22.81 ▼0.34 | 591.81 ▼63.58 | 36.09 ▼22.87 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.45 ▲0.23 | 82.87 ▼26.83 | 42.86 ▼5.09 |
Cursor Options /wp-admin/options-general.php?page=cursor-options | 1,649 | 3.63 | 46.16 | 162.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=cursor-options
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- 210 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cursor-options
- > Notice in wp-content/plugins/beautify-cursor/framework/functions/helper.php+92
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/beautify-cursor/app/config/xr.framework.config.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/beautify-cursor/framework/functions/enqueue.php:30
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Screenshot #1 (The available Icons with the plugin so far.) image required
beautify-cursor/beautify-cursor.php Passed 13 tests
The entry point to "Beautify Cursor" version 1.0 is a PHP file that has certain tags in its header comment area
88 characters long description:
Beautify your cursor style based on the wide variety of icons available with the plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,842 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 26 | 29 | 784 |
SVG | 1 | 0 | 0 | 685 |
PHP | 7 | 86 | 148 | 276 |
CSS | 2 | 15 | 2 | 97 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 8.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 1 | 4.35% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
70 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
app/assets/img/weapon-crosshair-2.png | 0.96KB | 0.39KB | ▼ 58.84% |
app/assets/img/click-gesture-1.png | 1.02KB | 0.71KB | ▼ 30.36% |
app/assets/img/rubbish-bin.png | 0.87KB | 0.53KB | ▼ 39.37% |
app/assets/img/clothing-tag.png | 0.72KB | 0.28KB | ▼ 61.04% |
app/assets/img/map-pin.png | 0.96KB | 0.57KB | ▼ 40.47% |