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
Install script ran successfully
Server metrics [RAM: ▼0.03MB] [CPU: ▼148.92ms] Passed 4 tests
Analyzing server-side resources used by Social Media Icons Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.67 ▼0.17 | 17.08 ▼10.63 |
Dashboard /wp-admin | 3.08 ▲0.02 | 32.77 ▼7.50 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 32.22 ▼1.29 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 78.40 ▼576.25 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 25.07 ▲1.37 |
TheWPHosting Social Icons /wp-admin/options-general.php?page=spoontalk_social_media | 3.16 | 27.18 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 2 new options
New WordPress options |
---|
spoontalk_social_style_settings |
widget_spoontalk-sociamedia-icons-widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Media Icons Widget
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,678 ▲77 | 15.95 ▼0.06 | 7.40 ▲0.48 | 77.59 ▲3.53 |
Dashboard /wp-admin | 2,938 ▲42 | 6.06 ▼0.24 | 115.14 ▼16.29 | 168.78 ▼7.31 |
Posts /wp-admin/edit.php | 2,742 ▲36 | 3.24 ▼0.01 | 62.64 ▼0.19 | 137.78 ▼2.42 |
Add New Post /wp-admin/post-new.php | 3,816 ▼18 | 19.22 ▲0.11 | 414.32 ▼40.17 | 155.17 ▼12.28 |
Media Library /wp-admin/upload.php | 1,757 ▲8 | 5.52 ▼0.02 | 134.24 ▼7.41 | 182.52 ▼3.65 |
TheWPHosting Social Icons /wp-admin/options-general.php?page=spoontalk_social_media | 2,736 | 3.31 | 73.63 | 164.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin does not fully uninstall, leaving 2 options in the database
- widget_spoontalk-sociamedia-icons-widget
- spoontalk_social_style_settings
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=spoontalk_social_media
- > Notice in wp-content/plugins/spoontalk-social-media-icons-widget/settings.php+441
Undefined variable: spoontalk_hover_animation
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/spoontalk-social-media-icons-widget/css/style.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: icon_style in wp-content/plugins/spoontalk-social-media-icons-widget/css/style.php on line 4
- > PHP Notice
Undefined variable: icon_style in wp-content/plugins/spoontalk-social-media-icons-widget/css/style.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spoontalk-social-media-icons-widget/spoontalk_social_scripts.php:102
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/spoontalk-social-media-icons-widget/spoontalk_social_icon_widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spoontalk-social-media-icons-widget/spoontalk_social_icons_admin.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/spoontalk-social-media-icons-widget/settings.php:52
- > PHP Notice
Undefined variable: icon_style in wp-content/plugins/spoontalk-social-media-icons-widget/css/style.php on line 6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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: Screenshot #1 (Settings Screen) image required
spoontalk-social-media-icons-widget/spoontalk_social_icons_admin.php 92% from 13 tests
The principal PHP file in "Social Media Icons Widget" v. 1.6 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("spoontalk-social-media-icons-widget.php" instead of "spoontalk_social_icons_admin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected9,252 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 430 | 295 | 7,991 |
PHP | 5 | 207 | 35 | 673 |
SVG | 1 | 0 | 0 | 504 |
JavaScript | 2 | 14 | 0 | 84 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 10 | |
▷ Named functions | 10 | 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
2 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/reorder-feature-post.png | 33.94KB | 15.16KB | ▼ 55.35% |
screenshot-1.png | 40.67KB | 19.61KB | ▼ 51.78% |