Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.80MB] [CPU: ▼35.98ms] Passed 4 tests
Server-side resources used by LessButtons Social Sharing and Statistics
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 38.99 ▼1.92 |
Dashboard /wp-admin | 3.14 ▼0.16 | 24.28 ▼36.50 |
Posts /wp-admin/edit.php | 3.14 ▼0.21 | 23.18 ▼21.24 |
Add New Post /wp-admin/post-new.php | 3.14 ▼2.74 | 24.30 ▼71.64 |
Media Library /wp-admin/upload.php | 3.14 ▼0.08 | 20.03 ▼14.54 |
LessButtons /wp-admin/options-general.php?page=LessButtons | 3.15 | 24.33 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 85 new files
Database: no new tables, 13 new options
New WordPress options |
---|
lessbuttons_updated |
lessbuttons_placement_inside |
lessbuttons_placement_outside |
lessbuttons_zindex |
lessbuttons_placement_custom_buttons |
lessbuttons_conditionals |
db_upgraded |
lessbuttons_placement_onmobile |
widget_theysaidso_widget |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by LessButtons Social Sharing and Statistics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲93 | 13.47 ▼0.92 | 5.38 ▲3.31 | 47.83 ▼0.36 |
Dashboard /wp-admin | 2,210 ▲19 | 4.84 ▼0.06 | 101.33 ▼7.84 | 42.06 ▼3.73 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 2.01 ▲0.05 | 38.53 ▲0.83 | 35.49 ▲1.70 |
Add New Post /wp-admin/post-new.php | 1,536 ▼6 | 23.34 ▲5.14 | 641.39 ▲25.66 | 50.80 ▼9.33 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.27 ▲0.06 | 97.24 ▼3.36 | 41.79 ▼1.46 |
LessButtons /wp-admin/options-general.php?page=LessButtons | 4,341 | 2.61 | 36.18 | 66.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > 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.
- Zombie WordPress options were found after uninstall: 13 options
- can_compress_scripts
- widget_recent-comments
- lessbuttons_conditionals
- lessbuttons_placement_custom_buttons
- lessbuttons_updated
- lessbuttons_zindex
- widget_theysaidso_widget
- lessbuttons_placement_inside
- db_upgraded
- widget_recent-posts
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=LessButtons
- > 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.
- > GET request to /wp-admin/options-general.php?page=LessButtons
- > Notice in wp-content/plugins/lessbuttons/lessbuttons.php+264
Undefined index: restore
- > GET request to /wp-admin/options-general.php?page=LessButtons
- > Notice in wp-content/plugins/lessbuttons/lessbuttons.php+268
Undefined index: save
SRP 50% 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lessbuttons/lessbuttons.php:36
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=LessButtons
- > Network (severe)
https://d3p4u3kahacfyu.cloudfront.net/images/sprite.32.small-fs8.png - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Tags: There are too many tags (173 tag instead of maximum 10)
lessbuttons/lessbuttons.php Passed 13 tests
"LessButtons Social Sharing and Statistics" version 1.6.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
136 characters long description:
Social media share buttons with integrated analytics. Automatically display buttons for those social networks, where visitor registered.
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 detected4,492 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 41 | 1,558 | 3,198 | 3,883 |
PHP | 1 | 115 | 39 | 609 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.05MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sprite.64.all-fs8.png | 50.97KB | 49.89KB | ▼ 2.12% |