Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/spider-facebook/spider_facebook_widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; spider_facebook has a deprecated constructor
Server metrics [RAM: ▼1.66MB] [CPU: ▼198.67ms] Passed 4 tests
Analyzing server-side resources used by WDSocialWidgets
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.97 ▼0.75 | 5.19 ▼20.18 |
Dashboard /wp-admin | 1.99 ▼1.07 | 5.33 ▼50.68 |
Posts /wp-admin/edit.php | 1.99 ▼1.12 | 6.36 ▼44.82 |
Add New Post /wp-admin/post-new.php | 1.99 ▼3.45 | 7.12 ▼664.87 |
Media Library /wp-admin/upload.php | 1.99 ▼1.01 | 6.31 ▼34.29 |
Licensing /wp-admin/admin.php?page=Licensing_Spider_Facebook | 1.99 | 5.90 |
Manage Facebook /wp-admin/admin.php?page=Spider_Facebook_manage | 1.99 | 5.71 |
Uninstall WD Social Widgets /wp-admin/admin.php?page=Uninstall_Spider_Facebook | 1.99 | 5.48 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 85 new files
Database: 2 new tables, 1 new option
New tables |
---|
wp_spiderfacebook_params |
wp_spiderfacebook_login |
New WordPress options |
---|
widget_spider_facebook |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WDSocialWidgets
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,721 ▲150 | 15.88 ▲0.53 | 10.31 ▼0.35 | 48.96 ▼2.74 |
Dashboard /wp-admin | 2,998 ▲67 | 5.93 ▼0.08 | 151.92 ▼21.07 | 143.10 ▲19.43 |
Posts /wp-admin/edit.php | 2,795 ▲56 | 2.73 ▲0.01 | 74.05 ▲3.77 | 95.66 ▼0.50 |
Add New Post /wp-admin/post-new.php | 2,063 ▲482 | 23.96 ▲4.63 | 429.44 ▲20.77 | 126.35 ▲6.91 |
Media Library /wp-admin/upload.php | 1,788 ▼19 | 5.00 ▼0.06 | 147.66 ▼25.51 | 144.27 ▲18.20 |
Licensing /wp-admin/admin.php?page=Licensing_Spider_Facebook | 1,102 | 2.05 | 66.39 | 60.98 |
Manage Facebook /wp-admin/admin.php?page=Spider_Facebook_manage | 1,351 | 3.25 | 75.77 | 110.35 |
Uninstall WD Social Widgets /wp-admin/admin.php?page=Uninstall_Spider_Facebook | 1,157 | 2.09 | 56.88 | 71.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/spider-facebook/spider_facebook_widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; spider_facebook has a deprecated constructor
- The uninstall procedure failed, leaving 2 tables in the database
- wp_spiderfacebook_params
- wp_spiderfacebook_login
- Zombie WordPress options were found after uninstall: 1 option
- widget_spider_facebook
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Uninstall_Spider_Facebook
- > Deprecated in wp-content/plugins/spider-facebook/spider_facebook_widget.php+2
Methods with the same name as their class will not be constructors in a future version of PHP; spider_facebook has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=Uninstall_Spider_Facebook
- > Deprecated in wp-content/plugins/spider-facebook/spider_facebook_widget.php+58
Function create_function() is deprecated
- > GET request to /wp-admin/admin.php?page=Uninstall_Spider_Facebook
- > Notice in wp-content/plugins/spider-facebook/spider-facebook.php+857
Undefined index: mode
SRP 50% 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
Please fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/spider-facebook/facebook_manager.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/spider-facebook/includes/front_end_meta.php:496
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/spider-facebook/includes/facebook_meta.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/spider-facebook/spider_facebook_widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/spider-facebook/spider_facebook_widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/spider-facebook/facbook_manager.html.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
No plugin tags provided
spider-facebook/spider-facebook.php Passed 13 tests
The main PHP script in "WDSocialWidgets" version 1.0.15 is automatically included on every request by WordPress
108 characters long description:
This plugin is a WordPress tool tha includes Facebooksocial plugins and widgets to be added to your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected7,385 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 958 | 107 | 6,595 |
JavaScript | 2 | 4 | 35 | 780 |
HTML | 2 | 3 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 11.11% |
Functions | 39 | |
▷ Named functions | 39 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
67 PNG files occupy 0.41MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/social_prev_2.png | 11.29KB | 4.28KB | ▼ 62.13% |
images/close.png | 3.31KB | 0.92KB | ▼ 72.02% |
images/share_hover.png | 4.16KB | 0.95KB | ▼ 77.20% |
images/like_box.png | 4.21KB | 1.10KB | ▼ 73.99% |
images/social_prev_3.png | 7.47KB | 2.89KB | ▼ 61.30% |