Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/wp-social-media-icon/wp-social-media-icon.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; SOCIALICONwidget has a deprecated constructor
Server metrics [RAM: ▼1.79MB] [CPU: ▼202.55ms] Passed 4 tests
This is a short check of server-side resources used by WP Social Media Icon
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.84 ▼0.99 | 5.86 ▼33.08 |
Dashboard /wp-admin | 1.86 ▼1.19 | 5.41 ▼53.20 |
Posts /wp-admin/edit.php | 1.86 ▼1.25 | 7.34 ▼47.60 |
Add New Post /wp-admin/post-new.php | 1.86 ▼3.57 | 5.55 ▼676.30 |
Media Library /wp-admin/upload.php | 1.86 ▼1.14 | 6.02 ▼33.11 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_phonenowidget |
widget_socialiconwidget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Social Media Icon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,706 ▲110 | 16.04 ▲0.41 | 11.81 ▲1.24 | 54.43 ▲2.37 |
Dashboard /wp-admin | 2,973 ▲42 | 6.01 ▲0.07 | 172.63 ▼0.60 | 128.60 ▲8.26 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.72 ▼0.01 | 79.34 ▼2.94 | 95.74 ▲6.18 |
Add New Post /wp-admin/post-new.php | 1,604 ▲23 | 18.43 ▼2.92 | 406.78 ▼5.48 | 118.38 ▼4.05 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.02 ▲0.01 | 187.10 ▲18.72 | 125.25 ▲3.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wp-social-media-icon/wp-social-media-icon.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; SOCIALICONwidget has a deprecated constructor
- This plugin does not fully uninstall, leaving 2 options in the database
- widget_socialiconwidget
- widget_phonenowidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-social-media-icon/wp-social-media-icon.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
2 plugin tags: social media icons, wp social media
wp-social-media-icon/wp-social-media-icon.php Passed 13 tests
The entry point to "WP Social Media Icon" version 1.0.2 is a PHP file that has certain tags in its header comment area
59 characters long description:
WP Social Media Icon can be used in any theme of wordpress.
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
Everything looks great! No dangerous files found in this plugin448 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 6 | 0 | 6 | 278 |
PHP | 1 | 60 | 16 | 153 |
CSS | 1 | 3 | 0 | 16 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 4.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/instagram.png | 1.64KB | 1.47KB | ▼ 10.39% |
images/linkedin.png | 1.18KB | 1.31KB | 0.00% |
images/livejournal.png | 1.06KB | 1.28KB | 0.00% |
images/facebook.png | 1.20KB | 1.02KB | ▼ 14.90% |
images/pinterest.png | 1.81KB | 1.46KB | ▼ 19.41% |