Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼13.29ms] Passed 4 tests
Analyzing server-side resources used by Custom Social Media Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 34.27 ▼8.16 |
Dashboard /wp-admin | 3.33 ▼0.01 | 43.33 ▼13.92 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 43.18 ▼7.93 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 79.69 ▼23.16 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.73 ▲4.48 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_custom_social_media_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Social Media Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.24 ▼0.13 | 1.93 ▲0.22 | 37.47 ▲0.43 |
Dashboard /wp-admin | 2,195 ▲15 | 5.61 ▼0.04 | 89.08 ▲4.43 | 36.78 ▼4.40 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.01 | 34.99 ▼7.48 | 28.77 ▼11.29 |
Add New Post /wp-admin/post-new.php | 1,525 ▼1 | 23.63 ▲0.50 | 682.51 ▲54.77 | 52.16 ▲0.41 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.11 ▼0.08 | 106.47 ▲4.71 | 48.89 ▲6.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- widget_custom_social_media_widget
- db_upgraded
- can_compress_scripts
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)
Even though no errors were found, 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/custom-social-media-widget/custom_social_media_widget.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: fb widgetsocial, icon widget, socialmedia, social media widget, twitter...
custom-social-media-widget/custom_social_media_widget.php 92% from 13 tests
The main PHP file in "Custom Social Media Widget" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-social-media-widget.php" instead of "custom_social_media_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
Success! There were no dangerous files found in this plugin124 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 27 | 82 |
CSS | 1 | 6 | 0 | 42 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin