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.03MB] [CPU: ▼1.12ms] Passed 4 tests
A check of server-side resources used by Custom Social Icons
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 35.36 ▼3.11 |
Dashboard /wp-admin | 3.36 ▲0.05 | 48.67 ▲2.13 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 51.72 ▲6.07 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 83.83 ▼7.35 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.58 ▲3.86 |
Custom Social Icons /wp-admin/options-general.php?page=CSI_template | 3.26 | 31.14 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Social Icons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲202 | 14.73 ▲0.19 | 1.70 ▼0.09 | 38.50 ▼6.33 |
Dashboard /wp-admin | 2,357 ▲169 | 6.39 ▲1.48 | 117.51 ▼0.00 | 40.34 ▼7.89 |
Posts /wp-admin/edit.php | 2,260 ▲171 | 3.31 ▲1.29 | 55.21 ▲17.12 | 34.32 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,524 ▼9 | 17.70 ▼5.28 | 673.63 ▲45.45 | 39.80 ▼14.76 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.18 ▼0.08 | 89.43 ▼10.14 | 45.87 ▲1.47 |
Custom Social Icons /wp-admin/options-general.php?page=CSI_template | 707 | 1.73 | 10.95 | 21.87 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=CSI_template
- > Error in wp-admin/includes/template.php+1801
Uncaught ArgumentCountError: Too few arguments to function do_settings_fields(), 1 passed in wp-content/plugins/custom-social-icon/templates/settings.php on line 5 and exactly 2 expected in wp-admin/includes/template.php:1801
Stack trace:
#0 wp-content/plugins/custom-social-icon/templates/settings.php(5): do_settings_fields()
#1 wp-content/plugins/custom-social-icon/custom_social_icon.php(140): include('/var/www/wordpr...')
#2 wp-includes/class-wp-hook.php(310): CSI->CSI_settings_page()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/admin.php(259): do_action()
#6 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#7 {main}
thrown
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/custom-social-icon/custom_social_icon.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/custom-social-icon/templates/settings.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tested up to: Version not formatted correctly
custom-social-icon/custom_social_icon.php 92% from 13 tests
The primary PHP file in "Custom Social Icons" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-social-icon.php" instead of "custom_social_icon.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected291 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 15 | 166 |
JavaScript | 2 | 20 | 28 | 105 |
CSS | 2 | 2 | 0 | 20 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 77.78% |
▷ Protected methods | 2 | 22.22% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/add.png | 1.00KB | 1.35KB | 0.00% |
images/no_image.png | 3.07KB | 1.66KB | ▼ 45.75% |
images/remove.png | 1.23KB | 1.43KB | 0.00% |