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.10MB] [CPU: ▼4.09ms] Passed 4 tests
A check of server-side resources used by Social Media Icon
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 44.03 ▲4.97 |
Dashboard /wp-admin | 3.42 ▲0.11 | 53.84 ▲1.73 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 50.25 ▼2.01 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 88.71 ▼15.57 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.30 ▼0.50 |
All Icon groups /wp-admin/edit.php?post_type=socialmedia_cpt | 3.38 | 39.51 |
Add New Icon group /wp-admin/post-new.php?post_type=socialmedia_cpt | 3.41 | 56.82 |
Server storage [IO: ▲0.88MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 72 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_socialmedia_widget_id |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
socialmedia_Default_Setting |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Media Icon
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲70 | 14.30 ▼0.43 | 1.91 ▲0.23 | 43.94 ▼1.70 |
Dashboard /wp-admin | 2,232 ▲61 | 5.55 ▼0.10 | 98.33 ▲10.33 | 72.98 ▲27.33 |
Posts /wp-admin/edit.php | 2,215 ▲115 | 2.05 ▲0.08 | 34.86 ▼6.38 | 36.83 ▼3.87 |
Add New Post /wp-admin/post-new.php | 1,569 ▲43 | 22.99 ▼0.58 | 654.46 ▼41.97 | 62.63 ▲5.60 |
Media Library /wp-admin/upload.php | 1,441 ▲44 | 4.18 ▼0.04 | 101.27 ▲0.25 | 64.89 ▲19.39 |
All Icon groups /wp-admin/edit.php?post_type=socialmedia_cpt | 1,150 | 2.17 | 34.56 | 39.69 |
Add New Icon group /wp-admin/post-new.php?post_type=socialmedia_cpt | 2,704 | 2.77 | 57.78 | 131.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_socialmedia_widget_id
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
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
Attributes that need to be fixed:
- Tags: There are too many tags (12 tag instead of maximum 10)
social-media-icon/social-media-icon.php 92% from 13 tests
The main file in "Social Media Icon" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin6,409 lines of code in 53 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 141 | 37 | 2,561 |
Sass | 13 | 19 | 22 | 1,158 |
LESS | 13 | 19 | 31 | 1,149 |
PHP | 18 | 224 | 88 | 912 |
SVG | 1 | 0 | 0 | 504 |
JavaScript | 1 | 42 | 0 | 125 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
11 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/SocialMedia_cpt_icon.png | 0.25KB | 0.20KB | ▼ 20.95% |
images/button_sets/social_model_9.png | 1.55KB | 1.50KB | ▼ 2.84% |
images/button_sets/social_model_6.png | 2.90KB | 2.84KB | ▼ 1.79% |
images/button_sets/social_model_5.png | 1.03KB | 1.00KB | ▼ 3.59% |
images/button_sets/button_sets.png | 2.15KB | 2.10KB | ▼ 2.18% |