Benchmarks
Plugin footprint 83% 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: ▲0.02MB] [CPU: ▼8.75ms] Passed 4 tests
This is a short check of server-side resources used by WP SociLine - Put twitter on your blogs
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 39.93 ▼0.02 |
Dashboard /wp-admin | 3.33 ▼0.01 | 44.88 ▼13.76 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 43.07 ▼5.40 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 80.49 ▼15.82 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 40.87 ▲7.82 |
Server storage [IO: ▲16.94MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 145 new files
Database: 1 new table, 19 new options
New tables |
---|
wpsociline_user_profile |
New WordPress options |
---|
widget_recent-posts |
wpsociline_notification_icon_bgcolor |
wpsociline_fonts |
wpsociline_spreadraius |
wpsociline_popup_state |
wpsociline_popupbox_rightoffset |
widget_recent-comments |
wpsociline_popupbox_height |
wpsociline_boxshadow_offset |
wpsociline_popupbox_borderradius |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP SociLine - Put twitter on your blogs
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲135 | 13.83 ▼0.55 | 4.80 ▲2.54 | 27.10 ▼12.02 |
Dashboard /wp-admin | 2,233 ▲45 | 5.18 ▲0.26 | 103.98 ▲1.54 | 50.50 ▲5.29 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.28 ▲0.27 | 36.01 ▼0.55 | 41.78 ▲6.19 |
Add New Post /wp-admin/post-new.php | 1,701 ▲166 | 25.56 ▲2.50 | 591.88 ▼50.78 | 54.89 ▼13.87 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.34 ▲0.12 | 95.01 ▲0.24 | 47.08 ▲4.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 19 options in the database
- widget_recent-comments
- wpsociline_fonts
- db_upgraded
- wpsociline_popupbox_bordercolor
- wpsociline_popupbox_height
- theysaidso_admin_options
- wpsociline_popup_state
- wpsociline_spreadraius
- wpsociline_popupbox_border
- wpsociline_notification_icon_bgcolor
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-sociline/wpsocilineusersitepopup.php
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-sociline/unichatbox/user_not_verified_bonus.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-sociline/sociline_profile_table.php:120
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-sociline/wpsociline_ajax_delete.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-sociline/sociline_template_settings.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-sociline/wpsociline_ajax_update.php:10
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-sociline/sociline_dashboard.php:72
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-sociline/unichatbox/user_not_verified.php:24
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots need descriptions #1, #2, #3, #4 in wp-sociline/assets to your readme.txt
wp-sociline/index.php 92% from 13 tests
The main PHP script in "WP SociLine - Put twitter on your blogs" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-sociline.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected145,121 lines of code in 103 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 58,323 |
YAML | 4 | 0 | 0 | 24,272 |
CSS | 23 | 5,017 | 113 | 21,462 |
JavaScript | 21 | 2,939 | 2,068 | 16,549 |
SVG | 7 | 0 | 24 | 13,892 |
Sass | 18 | 505 | 34 | 4,649 |
LESS | 18 | 502 | 55 | 4,607 |
PHP | 10 | 264 | 15 | 1,367 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
10 PNG files occupy 0.44MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/tekniklogo.png | 31.53KB | 8.50KB | ▼ 73.06% |
(invalid) unichatbox/asset/img/blue-icon-security.png | 13.74KB | 0.00KB | ▼ 100.00% |
assets/images/screenshot-2.png | 103.72KB | 32.72KB | ▼ 68.45% |
assets/images/screenshot-3.png | 63.19KB | 19.95KB | ▼ 68.43% |
assets/images/closechat.png | 57.49KB | 26.25KB | ▼ 54.33% |