Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/3xsocializer/3xsocializer.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; TXSocial has a deprecated constructor
Server metrics [RAM: ▼0.02MB] [CPU: ▼306.45ms] Passed 4 tests
A check of server-side resources used by 3xSocializer
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 53.49 ▲2.12 |
Dashboard /wp-admin | 3.41 ▲0.00 | 33.68 ▼1.55 |
Posts /wp-admin/edit.php | 3.65 ▲0.00 | 35.94 ▼1.24 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 91.41 ▼1,223.58 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 23.70 ▲0.59 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 53 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for 3xSocializer
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,805 ▲46 | 16.22 ▲0.21 | 6.26 ▲0.21 | 2.59 ▼0.28 |
Dashboard /wp-admin | 2,895 ▲34 | 6.06 ▼0.15 | 117.30 ▼16.23 | 155.97 ▼3.04 |
Posts /wp-admin/edit.php | 2,688 ▲3 | 3.24 ▲0.00 | 65.19 ▲2.25 | 153.07 ▲3.77 |
Add New Post /wp-admin/post-new.php | 1,719 ▲58 | 21.69 ▲4.44 | 408.67 ▼2.06 | 156.32 ▼1.68 |
Media Library /wp-admin/upload.php | 1,692 ▼9 | 5.53 ▲0.01 | 151.89 ▲13.47 | 187.33 ▲5.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/3xsocializer/3xsocializer.php+30
Methods with the same name as their class will not be constructors in a future version of PHP; TXSocial has a deprecated constructor
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 9× PHP files output text when accessed directly:
- > /wp-content/plugins/3xsocializer/upload-image.php
- > /wp-content/plugins/3xsocializer/help/twitter.php
- > /wp-content/plugins/3xsocializer/plugin_info.php
- > /wp-content/plugins/3xsocializer/3xsocializer.php
- > /wp-content/plugins/3xsocializer/help/linkedin.php
- > /wp-content/plugins/3xsocializer/help/screenr.php
- > /wp-content/plugins/3xsocializer/api.php
- > /wp-content/plugins/3xsocializer/help/youtube.php
- > /wp-content/plugins/3xsocializer/help/facebook.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Facebook' not found in wp-content/plugins/3xsocializer/facebook-php-sdk/examples/example.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/3xsocializer/after_post.php:9
- > PHP Fatal error
Uncaught Error: Class 'Facebook' not found in wp-content/plugins/3xsocializer/facebook-php-sdk/examples/with_js_sdk.php:5
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/3xsocializer/account_sets.php:5
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/3xsocializer/social_posts_share.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/3xsocializer/facebook-php-sdk/tests/tests.php:18
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/3xsocializer/settings.php on line 425
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/3xsocializer/social_posts.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/3xsocializer/license.php:36
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/3xsocializer/account_sets.php on line 5
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: social network, 3xsocial, 3xsocializer, don crowther, social...
3xsocializer/3xsocializer.php Passed 13 tests
Analyzing the main PHP file in "3xSocializer" version 0.98.22
22 characters long description:
Social Sharing Utility
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Almost there! Just fix the following issues
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/3xsocializer/facebook-php-sdk/src/fb_ca_chain_bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 27 | 960 | 1,442 | 6,266 |
JavaScript | 2 | 11 | 10 | 283 |
CSS | 1 | 7 | 16 | 199 |
Markdown | 2 | 33 | 0 | 81 |
JSON | 1 | 0 | 0 | 22 |
YAML | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 13.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 168.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 40 | |
▷ Abstract classes | 5 | 12.50% |
▷ Concrete classes | 35 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 390 | |
▷ Static methods | 29 | 7.44% |
▷ Public methods | 314 | 80.51% |
▷ Protected methods | 58 | 14.87% |
▷ Private methods | 18 | 4.62% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 8 | 47.06% |
▷ Class constants | 9 | 52.94% |
▷ Public constants | 9 | 100.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
14 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/edit_icon.png | 0.92KB | 1.03KB | 0.00% |
images/facebook_logo.png | 3.60KB | 2.50KB | ▼ 30.46% |
images/checkbox.png | 0.39KB | 0.24KB | ▼ 38.15% |
images/save_icon.png | 1.20KB | 1.20KB | 0.00% |
images/twitter_logo.png | 5.65KB | 2.95KB | ▼ 47.71% |