Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/social-media-icons/smc_widget.php+75
Methods with the same name as their class will not be constructors in a future version of PHP; SMCWidget has a deprecated constructor
Server metrics [RAM: ▼1.70MB] [CPU: ▼54.36ms] Passed 4 tests
An overview of server-side resources used by Social Media Icons Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.29 ▼1.18 | 10.41 ▼35.19 |
Dashboard /wp-admin | 2.30 ▼1.00 | 11.52 ▼45.21 |
Posts /wp-admin/edit.php | 2.30 ▼1.05 | 11.29 ▼43.06 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.58 | 13.16 ▼93.96 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 12.21 ▼26.59 |
Server storage [IO: ▲1.46MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 267 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_smcwidget |
first_save |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
default_iconset |
widget_recent-posts |
Browser metrics Passed 4 tests
Social Media Icons Widget: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.23 ▼0.35 | 2.34 ▲0.54 | 43.65 ▼0.07 |
Dashboard /wp-admin | 2,195 ▲24 | 5.64 ▼0.02 | 85.54 ▼7.72 | 42.17 ▲2.75 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.01 | 39.70 ▲0.37 | 34.71 ▲0.25 |
Add New Post /wp-admin/post-new.php | 1,547 ▲16 | 23.15 ▼0.13 | 674.98 ▼11.82 | 57.85 ▼4.52 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▲0.04 | 97.00 ▼21.07 | 39.65 ▼8.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in SMCWidget is deprecated since version 4.3.0! Use __construct() instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_smcwidget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
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 | 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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/social-media-icons/smc_widget.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget Front End), #2 (Widget Back End)
- Donate link: Invalid url: ""
- Tags: You are using too many tags: 18 tag instead of maximum 10
social-media-icons/smc_widget.php 92% from 13 tests
The main PHP script in "Social Media Icons Widget" version 1.2.7 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-media-icons.php" instead of "smc_widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected661 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 0 | 13 | 273 |
JavaScript | 3 | 53 | 57 | 230 |
PO File | 4 | 43 | 81 | 158 |
PHP | 1 | 39 | 442 | 0 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 70.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 5.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
254 PNG files occupy 1.40MB with 0.79MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/iconset/3D Vector/buzz.png | 4.82KB | 1.61KB | ▼ 66.65% |
images/iconset/Puzzle Piece/contact.png | 5.15KB | 1.68KB | ▼ 67.39% |
images/iconset/Sleek Green/linkedin.png | 3.41KB | 1.25KB | ▼ 63.25% |
images/add.png | 1.86KB | 1.57KB | ▼ 15.70% |
images/iconset/Breakthrough/youtube.png | 5.27KB | 1.69KB | ▼ 67.98% |