Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/pbsocialnetworks/pbWidgets.php+53
Function create_function() is deprecated
Server metrics [RAM: ▼1.88MB] [CPU: ▼305.40ms] Passed 4 tests
An overview of server-side resources used by pbSocialNetworks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.75 ▼0.97 | 9.10 ▼12.94 |
Dashboard /wp-admin | 1.77 ▼1.29 | 5.24 ▼43.14 |
Posts /wp-admin/edit.php | 1.77 ▼1.34 | 5.15 ▼31.05 |
Add New Post /wp-admin/post-new.php | 1.77 ▼3.66 | 5.39 ▼1,114.55 |
Media Library /wp-admin/upload.php | 1.77 ▼1.24 | 5.54 ▼32.87 |
Google+ /wp-admin/admin.php?page=pbsocialnetworks/googleplus.php | 1.77 | 5.12 |
Pinterest /wp-admin/admin.php?page=pbsocialnetworks/pinterest.php | 1.77 | 5.69 |
Open Graph /wp-admin/admin.php?page=pbsocialnetworks/opengraph.php | 1.77 | 5.78 |
Twitter /wp-admin/admin.php?page=pbsocialnetworks/twitter.php | 1.77 | 5.40 |
SocialNetworks /wp-admin/admin.php?page=pbsocialnetworks/pbSocialNetworks.php | 1.77 | 5.40 |
Stats /wp-admin/admin.php?page=pbsocialnetworks/stats.php | 1.77 | 4.41 |
Facebook /wp-admin/admin.php?page=pbsocialnetworks/facebook.php | 1.77 | 5.68 |
Server storage [IO: ▲0.68MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: 1 new table, 13 new options
New tables |
---|
wp_pbsocialnetworks_stats |
New WordPress options |
---|
widget_pbsn_lasttweet |
widget_pbsn_subscribebtn |
pbsn_options_facebook |
pbsn_options_googleplus |
widget_pbsn_recommendations |
widget_pbsn_activityfeed |
recovery_mode_email_last_sent |
pbsn_options_pinterest |
pbSocialNetworksDBversion |
pbsn_options_twitter |
... |
Browser metrics Passed 4 tests
Checking browser requirements for pbSocialNetworks
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,760 ▲154 | 15.85 ▲0.34 | 7.52 ▼1.63 | 53.07 ▲2.20 |
Dashboard /wp-admin | 3,011 ▲158 | 5.91 ▲0.00 | 137.96 ▼0.89 | 120.55 ▲17.95 |
Posts /wp-admin/edit.php | 2,779 ▲73 | 2.70 ▲0.03 | 62.11 ▼6.63 | 100.93 ▲0.12 |
Add New Post /wp-admin/post-new.php | 2,512 ▲222 | 24.18 ▲4.79 | 371.53 ▼2.74 | 127.00 ▲14.99 |
Media Library /wp-admin/upload.php | 1,777 ▲2 | 4.94 ▼0.07 | 122.28 ▼34.96 | 132.98 ▲20.67 |
Google+ /wp-admin/admin.php?page=pbsocialnetworks/googleplus.php | 1,253 | 2.49 | 53.61 | 81.34 |
Pinterest /wp-admin/admin.php?page=pbsocialnetworks/pinterest.php | 1,221 | 2.37 | 59.60 | 77.76 |
Open Graph /wp-admin/admin.php?page=pbsocialnetworks/opengraph.php | 1,861 | 2.37 | 57.43 | 89.15 |
Twitter /wp-admin/admin.php?page=pbsocialnetworks/twitter.php | 1,208 | 2.38 | 56.35 | 77.34 |
SocialNetworks /wp-admin/admin.php?page=pbsocialnetworks/pbSocialNetworks.php | 1,244 | 2.40 | 56.14 | 83.53 |
Stats /wp-admin/admin.php?page=pbsocialnetworks/stats.php | 912 | 1.85 | 35.06 | 38.41 |
Facebook /wp-admin/admin.php?page=pbsocialnetworks/facebook.php | 1,318 | 2.38 | 58.57 | 88.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/pbsocialnetworks/pbWidgets.php+53
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_pbsn_lasttweet
- widget_pbsn_likebox
- widget_pbsn_subscribebtn
- widget_pbsn_recommendations
- recovery_mode_email_last_sent
- widget_pbsn_activityfeed
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 35 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/facebook.php
- > Deprecated in wp-content/plugins/pbsocialnetworks/pbWidgets.php+257
Function create_function() is deprecated
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/facebook.php
- > Notice in wp-content/plugins/pbsocialnetworks/pbSocialNetworks.php+38
Undefined index: HTTP_REFERER
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/facebook.php
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in pbsn_likebox is deprecated since version 4.3.0! Use __construct() instead.
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/facebook.php
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in pbsn_activityfeed is deprecated since version 4.3.0! Use __construct() instead.
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/facebook.php
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in pbsn_recommendations is deprecated since version 4.3.0! Use __construct() instead.
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/facebook.php
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in pbsn_subscribebtn is deprecated since version 4.3.0! Use __construct() instead.
- 7 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/facebook.php
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in pbsn_lasttweet is deprecated since version 4.3.0! Use __construct() instead.
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/facebook.php
- > Warning in wp-content/plugins/pbsocialnetworks/pbOptions.php+967
Illegal string offset 'status'
- 28 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/facebook.php
- > Notice in wp-content/plugins/pbsocialnetworks/pbOptions.php+967
Uninitialized string offset: 0
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/opengraph.php
- > Warning in wp-content/plugins/pbsocialnetworks/pbOptions.php+974
Illegal string offset 'img'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/twitter.php
- > Warning in wp-content/plugins/pbsocialnetworks/pbOptions.php+967
Illegal string offset 'count'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/pbSocialNetworks.php
- > Warning in wp-content/plugins/pbsocialnetworks/pbOptions.php+967
Illegal string offset 'statics'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/pbSocialNetworks.php
- > Warning in wp-content/plugins/pbsocialnetworks/pbOptions.php+967
Illegal string offset 'css'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/pbSocialNetworks.php
- > Warning in wp-content/plugins/pbsocialnetworks/pbOptions.php+967
Illegal string offset 'articles'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/pbSocialNetworks.php
- > Warning in wp-content/plugins/pbsocialnetworks/pbOptions.php+967
Illegal string offset 'pages'
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/stats.php
- > Error in wp-content/plugins/pbsocialnetworks/pbStats.php+68
Uncaught Error: Call to undefined function mysql_real_escape_string() in /var/www/wordpress/wp-content/plugins/pbsocialnetworks/pbStats.php:68Stack trace:#0 /var/www/wordpress/wp-includes/class-wp-hook.php(303): pbStats->StatsPage()#1 /var/www/wordpress/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()#2 /var/www/wordpress/wp-includes/plugin.php(470): WP_Hook->do_action()#3 /var/www/wordpress/wp-admin/admin.php(259): do_action()#4 {main}thrown
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/facebook.php
- > Warning in wp-content/plugins/pbsocialnetworks/pbOptions.php+967
Illegal string offset 'sendbutton'
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=pbsocialnetworks/facebook.php
- > Warning in wp-content/plugins/pbsocialnetworks/pbOptions.php+967
Illegal string offset 'faces'
SRP 50% 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 fix the following items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pbsocialnetworks/pbWidgets.php:7
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pbsocialnetworks/pbWidgets.php:7
- > PHP Fatal error
Uncaught Error: Class 'pbStats' not found in wp-content/plugins/pbsocialnetworks/pbOptions.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #10 (The Social Buttons: FB like + Send, Tweet and Google +1, Pin it is disabled in this example.) image missing
- Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
pbsocialnetworks/pbSocialNetworks.php 85% from 13 tests
"pbSocialNetworks" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("pbsocialnetworks.php" instead of "pbSocialNetworks.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 427 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin3,834 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 336 | 85 | 2,066 |
JavaScript | 2 | 189 | 166 | 1,045 |
PO File | 1 | 200 | 222 | 600 |
HTML | 1 | 15 | 0 | 68 |
CSS | 2 | 10 | 4 | 55 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 36.38 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 5.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 60 | 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 | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/icon.png | 1.63KB | 0.73KB | ▼ 55.50% |
img/icon_36.png | 3.10KB | 1.67KB | ▼ 46.07% |