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.03MB] [CPU: ▼3.33ms] Passed 4 tests
Analyzing server-side resources used by Social Media Links
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.16 ▲1.62 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.75 ▲1.35 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 45.97 ▲3.77 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 79.63 ▼14.91 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.57 ▼1.36 |
Server storage [IO: ▲0.38MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 193 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
social_sorting_position |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Social Media Links
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,942 ▲196 | 14.95 ▲0.21 | 4.82 ▲3.18 | 38.28 ▼0.73 |
Dashboard /wp-admin | 2,228 ▲36 | 5.93 ▲0.98 | 104.12 ▼7.33 | 40.48 ▼1.25 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.64 ▲0.60 | 46.73 ▲12.67 | 35.94 ▲3.79 |
Add New Post /wp-admin/post-new.php | 1,698 ▲179 | 23.59 ▲0.57 | 592.41 ▼58.69 | 29.39 ▼26.22 |
Media Library /wp-admin/upload.php | 1,419 ▲28 | 5.16 ▲0.87 | 102.34 ▲4.93 | 43.97 ▲1.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- social_sorting_position
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/social-media-links/public/partials/social-media-public-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-links/admin/partials/class-social-media-admin-display.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-links/admin/partials/class-social-media-general-setting.php:19
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 16 tag instead of maximum 10
social-media-links/social-media.php 85% from 13 tests
This is the main PHP file of "Social Media Links" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("social-media-links.php" instead of "social-media.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,124 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 187 | 488 | 1,067 |
CSS | 2 | 6 | 5 | 48 |
JavaScript | 2 | 4 | 27 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 15.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 102.00 |
Average method complexity | 4.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 24 | 50.00% |
▷ Public methods | 42 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 12.50% |
Functions | 3 | |
▷ Named functions | 3 | 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
168 compressed PNG files occupy 0.30MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/default/64/instagram.png | 3.65KB | 3.62KB | ▼ 0.86% |
public/images/default/64/flickr.png | 1.90KB | 1.91KB | 0.00% |
public/images/default/64/picasa.png | 2.38KB | 2.37KB | 0.45% |
public/images/default/32/email.png | 1.61KB | 1.59KB | ▼ 1.09% |
public/images/default/16/deviantart.png | 0.81KB | 0.81KB | 0.00% |