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 gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼140.80ms] Passed 4 tests
Server-side resources used by Simple Social Icon Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 39.91 ▲18.76 |
Dashboard /wp-admin | 3.12 ▲0.06 | 44.41 ▼1.36 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 41.10 ▼3.00 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 94.36 ▼554.44 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 35.76 ▼4.39 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_gcz_simple_social_widget_id |
Browser metrics Passed 4 tests
Simple Social Icon Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,707 ▲125 | 15.95 ▲0.36 | 12.31 ▲2.81 | 44.92 ▼3.10 |
Dashboard /wp-admin | 2,970 ▲36 | 5.85 ▼0.12 | 149.35 ▲4.87 | 101.90 ▼4.17 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▲0.00 | 63.23 ▼4.52 | 90.13 ▼0.40 |
Add New Post /wp-admin/post-new.php | 3,691 ▲2,008 | 15.13 ▼3.44 | 480.96 ▲25.95 | 113.97 ▲5.30 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.03 ▼0.01 | 156.40 ▲6.85 | 111.20 ▼14.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 1 option
- widget_gcz_simple_social_widget_id
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-social-icon-widget/inc/Class-social-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-social-icon-widget/social-widget.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: These screenshots require images: #1 (Simple Social Icon 3 Design Pack), #2 (Widget Option)
simple-social-icon-widget/social-widget.php 92% from 13 tests
Analyzing the main PHP file in "Simple Social Icon Widget" version 1.0
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("simple-social-icon-widget.php" instead of "social-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected447 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 19 | 8 | 265 |
CSS | 2 | 12 | 20 | 137 |
SVG | 1 | 0 | 0 | 45 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 9.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.12MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/icon/style_3/tumblr.png | 2.30KB | 1.80KB | ▼ 21.50% |
inc/icon/style_3/facebook.png | 2.21KB | 1.80KB | ▼ 18.37% |
screenshot-2.png | 39.42KB | 16.48KB | ▼ 58.20% |
inc/icon/style_3/flickr.png | 2.26KB | 1.81KB | ▼ 19.86% |
inc/icon/style_3/rdio.png | 2.09KB | 1.46KB | ▼ 29.81% |