Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.68MB] [CPU: ▼46.58ms] Passed 4 tests
This is a short check of server-side resources used by Cool Social Icons Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.31 ▼1.15 | 13.72 ▼27.19 |
Dashboard /wp-admin | 2.32 ▼0.98 | 11.62 ▼35.47 |
Posts /wp-admin/edit.php | 2.32 ▼1.03 | 11.61 ▼34.69 |
Add New Post /wp-admin/post-new.php | 2.32 ▼3.56 | 11.59 ▼88.97 |
Media Library /wp-admin/upload.php | 2.32 ▼0.90 | 9.13 ▼25.29 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_cool-social-icons |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Cool Social Icons Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲45 | 13.29 ▼1.29 | 1.85 ▼0.28 | 38.80 ▼12.00 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▼0.00 | 103.26 ▲0.81 | 39.62 ▼2.23 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.06 ▲0.06 | 39.67 ▼0.94 | 34.89 ▼2.66 |
Add New Post /wp-admin/post-new.php | 1,539 ▼3 | 23.52 ▲5.40 | 672.84 ▲67.54 | 56.11 ▲0.27 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.18 ▲0.02 | 101.53 ▼0.66 | 44.22 ▲0.92 |
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
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/cool-social-icons-widget/cool-social-icons.php+54
Trying to access array offset on value of type null
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_cool-social-icons
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cool-social-icons-widget/cool-social-icons.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (screenshoot-1.png), #2 (screenshoot-2.png), #3 (screenshoot-3.png)
- Contributors: Plugin contributors field is missing
cool-social-icons-widget/cool-social-icons.php 85% from 13 tests
"Cool Social Icons Widget" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 162 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cool-social-icons-widget.php" instead of "cool-social-icons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected225 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 56 | 70 | 143 |
CSS | 2 | 24 | 0 | 82 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
25 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/icons/twitter.png | 0.35KB | 0.46KB | 0.00% |
css/icons/flickr.png | 0.26KB | 0.25KB | ▼ 4.49% |
css/icons/rss.png | 3.03KB | 0.53KB | ▼ 82.40% |
css/icons/instagram-dark.png | 2.92KB | 0.29KB | ▼ 90.15% |
css/icons/myspace-dark.png | 3.01KB | 0.45KB | ▼ 84.95% |