Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.94MB] [CPU: ▼28.51ms] Passed 4 tests
An overview of server-side resources used by Social Links Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.87 ▼0.72 |
Dashboard /wp-admin | 3.00 ▼0.30 | 26.37 ▼18.19 |
Posts /wp-admin/edit.php | 3.00 ▼0.35 | 23.05 ▼24.44 |
Add New Post /wp-admin/post-new.php | 3.00 ▼2.88 | 22.71 ▼67.22 |
Media Library /wp-admin/upload.php | 3.00 ▼0.23 | 27.59 ▼4.19 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_social_links_widget_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Links Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 13.63 ▼0.78 | 1.69 ▼0.28 | 44.29 ▼12.76 |
Dashboard /wp-admin | 2,221 ▲36 | 4.86 ▼0.95 | 110.15 ▲7.82 | 78.46 ▲33.04 |
Posts /wp-admin/edit.php | 2,104 ▲18 | 1.98 ▼0.04 | 37.66 ▲3.19 | 33.51 ▼2.09 |
Add New Post /wp-admin/post-new.php | 1,688 ▲152 | 24.64 ▲1.52 | 711.98 ▲64.51 | 59.53 ▼26.20 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.20 ▲0.01 | 115.89 ▲14.72 | 46.06 ▲0.30 |
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
The following items require your attention
- Uninstall procedure had uncaught errors
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_social_links_widget_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function shortcode_exists() in wp-content/plugins/social-links-widget/main.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-links-widget/social-admin.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== social-links-widget ===
) - Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
social-links-widget/main.php 85% from 13 tests
The main file in "Social Links Widget" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("social-links-widget.php" instead of "main.php")
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
Good job! No executable or dangerous file extensions detected175 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 21 | 58 | 135 |
CSS | 1 | 1 | 0 | 40 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 6 | |
▷ Named functions | 6 | 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
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/social-icon.png | 1.77KB | 0.94KB | ▼ 46.71% |
social-icons/vimeo.png | 4.64KB | 2.75KB | ▼ 40.84% |
social-icons/yt.png | 2.20KB | 0.70KB | ▼ 68.34% |
social-icons/pin.png | 4.27KB | 1.29KB | ▼ 69.89% |
img/social-icon1.png | 1.32KB | 0.64KB | ▼ 51.59% |