Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.18MB] [CPU: ▼308.00ms] Passed 4 tests
A check of server-side resources used by webZunder Sharing Icons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.10 | 43.62 ▼9.60 |
Dashboard /wp-admin | 3.59 ▲0.18 | 34.22 ▲0.44 |
Posts /wp-admin/edit.php | 3.81 ▲0.17 | 37.31 ▼3.00 |
Add New Post /wp-admin/post-new.php | 5.81 ▼1.16 | 62.76 ▼1,210.82 |
Media Library /wp-admin/upload.php | 3.47 ▲0.17 | 23.60 ▼8.58 |
Sharing Icons /wp-admin/options-general.php?page=soshicons_settings | 3.43 | 23.04 |
Server storage [IO: ▲1.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 47 new files
Database: no new tables, 3 new options
New WordPress options |
---|
soshicons_options |
soshicons_show_options |
soshicons_version |
Browser metrics Passed 4 tests
webZunder Sharing Icons: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,807 ▲53 | 15.90 ▲0.31 | 8.21 ▲1.60 | 2.60 ▲0.12 |
Dashboard /wp-admin | 2,897 ▲39 | 6.21 ▲0.01 | 116.72 ▼16.94 | 159.43 ▼6.63 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.23 ▼0.13 | 63.73 ▲2.20 | 138.22 ▲1.21 |
Add New Post /wp-admin/post-new.php | 1,664 ▼7 | 16.40 ▼4.32 | 436.15 ▼8.18 | 153.01 ▲2.86 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.53 ▲0.02 | 133.79 ▼7.78 | 191.36 ▼1.73 |
Sharing Icons /wp-admin/options-general.php?page=soshicons_settings | 1,166 | 2.37 | 55.11 | 147.55 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 2 options
- soshicons_show_options
- soshicons_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=soshicons_settings
- > Notice in wp-content/plugins/sosh-icons/sosh_icons.php+79
Undefined variable: active_tab
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=soshicons_settings
- > Warning in wp-content/plugins/sosh-icons/sosh_icons.php+314
Use of undefined constant ’ - assumed '’' (this will throw an Error in a future version of PHP)
SRP 50% from 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
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/sosh-icons/sosh_icons.php:31
- > 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 93% 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 need to be fixed:
- Tags: Please reduce the number of tags, currently 36 tag instead of maximum 10
sosh-icons/sosh_icons.php 92% from 13 tests
This is the main PHP file of "webZunder Sharing Icons" version 1.2.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("sosh-icons.php" instead of "sosh_icons.php")
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 plugin6,633 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 3 | 14 | 2,092 |
Sass | 14 | 30 | 26 | 1,588 |
LESS | 14 | 30 | 36 | 1,578 |
SVG | 1 | 0 | 0 | 655 |
PHP | 2 | 161 | 40 | 642 |
JavaScript | 1 | 1 | 0 | 78 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 34 | |
▷ Named functions | 34 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
logo.png | 21.40KB | 8.54KB | ▼ 60.10% |