Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/nino-social-connect/includes/ninosocial_widget.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; ninosocial_widget has a deprecated constructor
Server metrics [RAM: ▼1.79MB] [CPU: ▼60.59ms] Passed 4 tests
An overview of server-side resources used by Nino Social Connect
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 4.98 ▼40.58 |
Dashboard /wp-admin | 2.21 ▼1.09 | 5.81 ▼49.39 |
Posts /wp-admin/edit.php | 2.21 ▼1.14 | 7.84 ▼45.60 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.67 | 6.83 ▼106.77 |
Media Library /wp-admin/upload.php | 2.21 ▼1.01 | 5.59 ▼31.69 |
Nino Social /wp-admin/options-general.php?page=nino_social | 2.22 | 6.21 |
Server storage [IO: ▲9.95MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 172 new files
Database: no new tables, 49 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
nino_social_digg |
nino_social_installajc |
nino_social_carbonmade |
nino_social_flickr |
nino_social_forstorm |
widget_recent-comments |
nino_social_youtube_channel |
nino_social_instagram |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Nino Social Connect
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.34 ▲0.16 | 1.77 ▼0.47 | 43.33 ▼5.05 |
Dashboard /wp-admin | 2,193 ▲13 | 5.54 ▼0.12 | 86.46 ▼0.44 | 39.07 ▼4.48 |
Posts /wp-admin/edit.php | 2,086 ▼14 | 2.00 ▼0.02 | 35.58 ▼3.17 | 34.21 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,528 ▼0 | 23.49 ▲0.33 | 657.39 ▲12.10 | 57.68 ▲4.83 |
Media Library /wp-admin/upload.php | 1,407 ▲16 | 4.18 ▼0.02 | 101.76 ▼3.09 | 41.82 ▼4.36 |
Nino Social /wp-admin/options-general.php?page=nino_social | 2,338 | 2.33 | 50.12 | 90.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/nino-social-connect/includes/ninosocial_widget.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; ninosocial_widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 49 options in the database
- nino_social_social-google
- widget_ninosocial_widget
- nino_social_soundcloud
- nino_social_instagram
- nino_social_behance
- nino_social_reddit
- nino_social_forstorm
- nino_social_dribbble
- nino_social_evernote
- nino_social_github
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=nino_social
- > Deprecated in wp-content/plugins/nino-social-connect/includes/ninosocial_widget.php+4
Methods with the same name as their class will not be constructors in a future version of PHP; ninosocial_widget has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=nino_social
- > Deprecated in wp-content/plugins/nino-social-connect/includes/ninosocial_widget.php+64
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=nino_social
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in ninosocial_widget is deprecated since version 4.3.0! Use __construct() instead.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=nino_social
- > 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=nino_social
- > Notice in wp-content/plugins/nino-social-connect/includes/social-form.php+15
Undefined variable: nino_social_appear
- > GET request to /wp-admin/options-general.php?page=nino_social
- > Notice in wp-content/plugins/nino-social-connect/includes/social-form.php+29
Undefined index: NINO_SOCIAL_FORM_SUBMIT
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nino-social-connect/includes/admin-page.php:22
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nino-social-connect/includes/ninosocial_widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function ninosocial_provider_list() in wp-content/plugins/nino-social-connect/includes/social-form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nino-social-connect/includes/ninosocial_shortcode.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nino-social-connect/includes/admin-page.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: twitter, facebook, social profile connect, social widget, social profile...
nino-social-connect/nino-social.php 92% from 13 tests
The main file in "Nino Social Connect" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("nino-social-connect.php" instead of "nino-social.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin2,303 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 4 | 67 | 1,172 |
PHP | 6 | 95 | 19 | 980 |
JavaScript | 1 | 38 | 7 | 151 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
161 PNG files occupy 9.86MB with 6.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/assets/images/social-style/style-16.png | 4.87KB | 2.30KB | ▼ 52.73% |
includes/assets/images/nino-social-sprite-style-13-46.png | 51.92KB | 19.53KB | ▼ 62.39% |
includes/assets/images/nino-social-sprite-style-27-64.png | 162.58KB | 43.24KB | ▼ 73.40% |
includes/assets/images/nino-social-sprite-style-1-46.png | 79.36KB | 17.29KB | ▼ 78.21% |
includes/assets/images/social-style/style-12.png | 3.80KB | 2.04KB | ▼ 46.26% |