Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/move-site-icon-to-settings/class-msits-site-icon.php+83
Cannot use "parent" when current class scope has no parent
Server metrics [RAM: ▼1.80MB] [CPU: ▼50.71ms] Passed 4 tests
Server-side resources used by Move Site Icon To Settings
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 4.26 ▼34.88 |
Dashboard /wp-admin | 2.20 ▼1.10 | 6.34 ▼42.90 |
Posts /wp-admin/edit.php | 2.20 ▼1.15 | 6.72 ▼36.15 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.68 | 6.88 ▼88.89 |
Media Library /wp-admin/upload.php | 2.20 ▼1.02 | 5.07 ▼30.92 |
/wp-admin/admin.php?page=msits-site_icon-upload | 2.20 | 6.37 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Move Site Icon To Settings
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,937 ▲166 | 14.71 ▲0.33 | 1.65 ▼0.16 | 39.48 ▼2.46 |
Dashboard /wp-admin | 2,346 ▲155 | 6.45 ▲1.57 | 123.97 ▲21.11 | 37.82 ▼6.56 |
Posts /wp-admin/edit.php | 2,252 ▲163 | 3.31 ▲1.29 | 47.86 ▲13.58 | 33.15 ▼2.32 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.12 ▲5.47 | 620.38 ▼82.71 | 35.54 ▼26.31 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.11 ▼0.06 | 77.82 ▼31.26 | 40.26 ▼12.75 |
/wp-admin/admin.php?page=msits-site_icon-upload | 975 | 3.02 | 38.66 | 28.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/move-site-icon-to-settings/class-msits-site-icon.php+83
Cannot use "parent" when current class scope has no parent
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=msits-site_icon-upload
- > Deprecated in wp-content/plugins/move-site-icon-to-settings/class-msits-site-icon.php+95
Cannot use "parent" when current class scope has no parent
SRP 50% 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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/move-site-icon-to-settings/msits-site-icon.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_verify_nonce() in wp-content/plugins/move-site-icon-to-settings/upload-site-icon.php:14
- > 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 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: site icon, customizer
move-site-icon-to-settings/msits-site-icon.php 92% from 13 tests
The main file in "Move Site Icon To Settings" v. 1.1 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:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("move-site-icon-to-settings.php" instead of "msits-site-icon.php")
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
Success! There were no dangerous files found in this plugin601 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 180 | 255 | 502 |
CSS | 1 | 0 | 0 | 53 |
JavaScript | 1 | 8 | 1 | 46 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 16 | 55.17% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
browser.png | 46.48KB | 16.89KB | ▼ 63.66% |