Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.65ms] Passed 4 tests
A check of server-side resources used by Social Sticky
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.62 ▼32.30 |
Dashboard /wp-admin | 2.05 ▼1.26 | 4.93 ▼42.86 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.20 ▼42.12 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.37 ▼85.32 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.93 ▼27.91 |
Social Sticky /wp-admin/options-general.php?page=ss | 2.05 | 5.32 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Social Sticky
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲213 | 13.64 ▼0.72 | 8.64 ▲7.11 | 36.16 ▼2.76 |
Dashboard /wp-admin | 2,224 ▲44 | 5.78 ▲0.20 | 84.27 ▼2.63 | 38.19 ▼8.46 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.31 ▲0.33 | 34.94 ▼4.28 | 29.59 ▼4.23 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.37 ▲0.23 | 698.73 ▲7.09 | 41.55 ▼14.12 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.34 ▲0.15 | 99.40 ▼6.06 | 42.29 ▼2.05 |
Social Sticky /wp-admin/options-general.php?page=ss | 1,691 | 2.97 | 59.83 | 28.17 |
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
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ss-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
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
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=ss
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ss-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=ss
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ss-css handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=ss
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ss-effect handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=ss
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ss-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=ss
- > Notice in wp-content/plugins/social-sticky/ss-options-page.php+203
Undefined index: ShowFaces
- > GET request to /wp-admin/options-general.php?page=ss
- > Notice in wp-content/plugins/social-sticky/ss-options-page.php+204
Undefined index: ShowStream
- > GET request to /wp-admin/options-general.php?page=ss
- > Notice in wp-content/plugins/social-sticky/ss-options-page.php+205
Undefined index: ShowHeader
- > GET request to /wp-admin/options-general.php?page=ss
- > Notice in wp-content/plugins/social-sticky/ss-options-page.php+249
Undefined index: EnableLeftEffect
- > GET request to /wp-admin/options-general.php?page=ss
- > Notice in wp-content/plugins/social-sticky/ss-options-page.php+317
Undefined index: EnableRightEffect
SRP 0% 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 take a closer look at the following
- 6× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/social-sticky/ss-box-show-effect-triangle-corner.php
- > /wp-content/plugins/social-sticky/ss-box-show-effect-arc-in.php
- > /wp-content/plugins/social-sticky/ss-box-show-effect-arc-out.php
- > /wp-content/plugins/social-sticky/ss-box-show-TWLikeBox-corner.php
- > /wp-content/plugins/social-sticky/ss-box-show-GGLikeBox-corner.php
- > /wp-content/plugins/social-sticky/ss-box-show-FBLikeBox-corner.php
- 393× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: effect_type in wp-content/plugins/social-sticky/ss-box-init.php on line 86
- > PHP Notice
Undefined variable: effect_type in wp-content/plugins/social-sticky/ss-box-init.php on line 76
- > PHP Notice
Undefined variable: position in wp-content/plugins/social-sticky/ss-box-init.php on line 56
- > PHP Notice
Undefined variable: effect_type in wp-content/plugins/social-sticky/ss-box-init.php on line 86
- > PHP Notice
Undefined variable: effect_size in wp-content/plugins/social-sticky/ss-box-init.php on line 41
- > PHP Notice
Undefined variable: effect_type in wp-content/plugins/social-sticky/ss-box-init.php on line 86
- > PHP Notice
Undefined variable: ss_animation_id in wp-content/plugins/social-sticky/ss-box-show-effect-triangle-corner.php on line 27
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/social-sticky/ss-box-show.php:4
- > PHP Notice
Undefined variable: position in wp-content/plugins/social-sticky/ss-box-init.php on line 51
- > PHP Notice
Undefined variable: position in wp-content/plugins/social-sticky/ss-box-init.php on line 59
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: facebook, wordpress, effect, color, likebox...
social-sticky/social-sticky.php Passed 13 tests
The main PHP file in "Social Sticky" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
84 characters long description:
Social Sticky is Simply and Effectively to get more shares, more traffic, more fans.
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
Success! There were no dangerous files found in this plugin805 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 97 | 68 | 618 |
JavaScript | 3 | 18 | 13 | 169 |
CSS | 1 | 2 | 0 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.96 |
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 | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
7 PNG files occupy 0.17MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/gg.png | 2.08KB | 1.63KB | ▼ 21.81% |
img/tw.png | 1.11KB | 1.25KB | 0.00% |
screenshot-4.png | 54.38KB | 19.55KB | ▼ 64.04% |
screenshot-2.png | 36.46KB | 19.20KB | ▼ 47.33% |
img/fb.png | 1.07KB | 1.12KB | 0.00% |