Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.77ms] Passed 4 tests
This is a short check of server-side resources used by Кнопки социальных сетей
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.78 ▼0.28 |
Dashboard /wp-admin | 3.34 ▲0.03 | 49.77 ▼5.18 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.76 ▼2.66 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.72 ▼22.14 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 38.93 ▼1.10 |
Поделитьсся в социальных сетях /wp-admin/options-general.php?page=svensoft_social_share_buttons_menu | 3.25 | 30.22 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Кнопки социальных сетей
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.59 ▼0.80 | 8.93 ▲7.20 | 44.23 ▲4.49 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼1.05 | 107.01 ▼1.96 | 42.27 ▼2.69 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.03 ▲0.05 | 39.84 ▼1.88 | 36.88 ▼1.05 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 18.20 ▲0.70 | 628.16 ▼58.11 | 55.79 ▼6.27 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.21 ▲0.00 | 96.16 ▼21.00 | 40.75 ▼8.13 |
Поделитьсся в социальных сетях /wp-admin/options-general.php?page=svensoft_social_share_buttons_menu | 880 | 2.02 | 22.14 | 31.53 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=svensoft_social_share_buttons_menu
- > Notice in wp-content/plugins/svensoft-social-share-buttons/templates/template-options-form.php+34
Trying to access array offset on value of type bool
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
Please fix the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/svensoft-social-share-buttons/templates/template-social-buttons.php
- > /wp-content/plugins/svensoft-social-share-buttons/1.1.0.1/templates/template-social-buttons.php
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/svensoft-social-share-buttons/svensoft-social-share-buttons.php:63
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/svensoft-social-share-buttons/templates/template-social-buttons.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/svensoft-social-share-buttons/1.1.0.1/templates/template-options-form.php:8
- > PHP Notice
Undefined variable: image_share in wp-content/plugins/svensoft-social-share-buttons/templates/template-social-buttons.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/svensoft-social-share-buttons/1.1.0.1/svensoft-social-share-buttons.php:63
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/svensoft-social-share-buttons/1.1.0.1/templates/template-social-buttons.php on line 1
- > PHP Notice
Undefined variable: options in wp-content/plugins/svensoft-social-share-buttons/1.1.0.1/templates/template-social-buttons.php on line 1
- > PHP Notice
Undefined variable: excerpt in wp-content/plugins/svensoft-social-share-buttons/1.1.0.1/templates/template-social-buttons.php on line 5
- > PHP Notice
Undefined variable: image_share in wp-content/plugins/svensoft-social-share-buttons/1.1.0.1/templates/template-social-buttons.php on line 4
- > PHP Notice
Undefined variable: title in wp-content/plugins/svensoft-social-share-buttons/1.1.0.1/templates/template-social-buttons.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Donate link: Invalid URI found ("")
svensoft-social-share-buttons/svensoft-social-share-buttons.php Passed 13 tests
"Кнопки социальных сетей" version 1.1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
109 characters long description:
Плагин создает shortcode кнопок "Поделиться в социальных сетях".
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
Good job! No executable or dangerous file extensions detected447 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 51 | 93 | 233 |
CSS | 2 | 1 | 0 | 112 |
JavaScript | 2 | 38 | 22 | 102 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 2 | 7.14% |
▷ Public methods | 20 | 71.43% |
▷ Protected methods | 6 | 21.43% |
▷ Private methods | 2 | 7.14% |
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
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.29MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 31.14KB | 17.38KB | ▼ 44.18% |
1.1.0.1/screenshot-1.png | 31.14KB | 17.38KB | ▼ 44.18% |
1.1.0.1/images/placeholder__.png | 3.55KB | 1.97KB | ▼ 44.34% |
images/placeholder__.png | 3.55KB | 1.97KB | ▼ 44.34% |
1.1.0.1/images/placeholder.png | 10.96KB | 4.68KB | ▼ 57.32% |