Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼144.36ms] Passed 4 tests
Analyzing server-side resources used by Sticky Social Icon
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 26.51 ▼1.30 |
Dashboard /wp-admin | 3.09 ▲0.02 | 46.45 ▲3.66 |
Posts /wp-admin/edit.php | 3.14 ▲0.02 | 39.31 ▲3.04 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.00 | 75.14 ▼577.96 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 24.90 ▼1.22 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 22 new files
Database: 1 new table, no new options
New tables |
---|
wp_sticky_social_icon |
Browser metrics Passed 4 tests
An overview of browser requirements for Sticky Social Icon
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,923 ▲322 | 16.17 ▲0.14 | 6.50 ▲0.30 | 78.66 ▲2.90 |
Dashboard /wp-admin | 2,962 ▲66 | 6.90 ▲0.73 | 117.40 ▼13.45 | 181.79 ▲8.90 |
Posts /wp-admin/edit.php | 2,776 ▲70 | 3.28 ▲0.05 | 67.44 ▲0.37 | 133.94 ▼15.28 |
Add New Post /wp-admin/post-new.php | 2,338 ▼1,405 | 15.70 ▼3.52 | 438.29 ▼0.64 | 180.55 ▲15.31 |
Media Library /wp-admin/upload.php | 1,779 ▲27 | 5.87 ▲0.42 | 127.82 ▼27.89 | 205.77 ▲21.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/sticky-social-icon/sticky-social-icon.php:15
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/sticky-social-icon/sticky-social-icon-setting-form.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/sticky-social-icon/sticky-social-icon-setting-form.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (Setting Page with color theme), #2 (Real UI with color picker)
sticky-social-icon/sticky-social-icon.php Passed 13 tests
The main PHP script in "Sticky Social Icon" version 2.0.0 is automatically included on every request by WordPress
110 characters long description:
Sticky social icon is a simple container of social media icons, glued to the right side of the browser window.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin363 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 43 | 34 | 336 |
JavaScript | 1 | 0 | 3 | 27 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
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 | 7 | |
▷ Named functions | 7 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
17 PNG files occupy 0.10MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icon/facebook.png | 3.19KB | 0.46KB | ▼ 85.68% |
icon/instagram.png | 3.56KB | 0.68KB | ▼ 81.03% |
icon/flickr.png | 3.29KB | 0.57KB | ▼ 82.71% |
icon/tumblr.png | 3.25KB | 0.46KB | ▼ 85.99% |
icon/vemo.png | 3.53KB | 0.78KB | ▼ 77.92% |