Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.44ms] Passed 4 tests
A check of server-side resources used by BS Social Icons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.01 ▲1.27 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.64 ▲1.11 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 47.53 ▲1.03 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 84.73 ▼21.15 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.20 ▲8.33 |
Settings & Instructions /wp-admin/admin.php?page=bsoft_social_option | 3.21 | 32.92 |
All Icons /wp-admin/admin.php?page=bs-social | 3.26 | 29.97 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
bsoft_redirect_name |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
bsoft_redirect_link |
bsoft_image_attachment_id |
Browser metrics Passed 4 tests
An overview of browser requirements for BS Social Icons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲186 | 13.50 ▼0.78 | 9.62 ▲7.91 | 42.04 ▼3.52 |
Dashboard /wp-admin | 2,215 ▲38 | 5.83 ▲0.16 | 85.02 ▼3.95 | 82.57 ▲37.42 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 1.99 ▲0.01 | 38.69 ▼0.66 | 34.60 ▼6.44 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.50 ▼0.15 | 724.43 ▲66.80 | 62.22 ▲10.91 |
Media Library /wp-admin/upload.php | 1,435 ▲38 | 4.17 ▼0.02 | 101.68 ▲2.89 | 70.18 ▲27.75 |
Settings & Instructions /wp-admin/admin.php?page=bsoft_social_option | 827 | 1.65 | 26.22 | 25.21 |
All Icons /wp-admin/admin.php?page=bs-social | 1,126 | 3.02 | 41.19 | 28.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/admin.php?page=bs-social
- > Warning in wp-content/plugins/bs-social-icons/templates/table.php+6
sizeof(): Parameter must be an array or an object that implements Countable
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/bs-social-icons/includes/class-bsoft-social-options.php
- > /wp-content/plugins/bs-social-icons/bs_social_icons.php
- > /wp-content/plugins/bs-social-icons/templates/table.php
- > /wp-content/plugins/bs-social-icons/includes/class-commands.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/bs-social-icons/templates/bsoft-social-form-add.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/bs-social-icons/templates/display_icon.php:23
- > PHP Notice
Undefined variable: extract_these in wp-content/plugins/bs-social-icons/templates/table.php on line 5
- > PHP Notice
Undefined variable: extract_these in wp-content/plugins/bs-social-icons/templates/table.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bs-social-icons/templates/table.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bs-social-icons/templates/table.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bs-social-icons/templates/table.php on line 3
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bs-social-icons/templates/table.php on line 4
- > PHP Warning
sizeof(): Parameter must be an array or an object that implements Countable in wp-content/plugins/bs-social-icons/templates/table.php on line 6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/bs-social-icons/templates/table.php on line 5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=bs-social
- > Network (severe)
wp-content/plugins/bs-social-icons//images/small_icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #0, #0, #0 in bs-social-icons/assets to your readme.txt
bs-social-icons/bs_social_icons.php 92% from 13 tests
The main PHP script in "BS Social Icons" version 0.0.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("bs-social-icons.php" instead of "bs_social_icons.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin652 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 81 | 117 | 407 |
JavaScript | 1 | 13 | 39 | 150 |
CSS | 1 | 3 | 8 | 95 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 10.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 24 | 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 | 3 | |
▷ Global constants | 3 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/small_icon.PNG | 3.21KB | 0.43KB | ▼ 86.69% |