Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.93MB] [CPU: ▼35.57ms] Passed 4 tests
A check of server-side resources used by Social Syndication Commando
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 46.69 ▲1.92 |
Dashboard /wp-admin | 3.01 ▼0.29 | 28.78 ▼26.54 |
Posts /wp-admin/edit.php | 3.01 ▼0.34 | 25.79 ▼25.26 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.87 | 23.84 ▼77.69 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 24.92 ▼12.80 |
Server storage [IO: ▲1.74MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 113 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Social Syndication Commando
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.44 ▲0.06 | 1.78 ▼0.65 | 37.75 ▼7.11 |
Dashboard /wp-admin | 2,218 ▲33 | 5.88 ▲0.01 | 97.70 ▼22.61 | 38.36 ▼4.28 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.02 ▲0.01 | 39.24 ▼0.50 | 34.52 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,524 ▲5 | 17.46 ▼5.81 | 680.99 ▲26.96 | 51.42 ▼17.98 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.18 ▼0.01 | 102.58 ▲1.53 | 43.08 ▼2.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5453
Function add_object_page is deprecated since version 4.5.0! Use add_menu_page() instead.
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 25× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/social-syndication-commando/views/index.php:29
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/social-syndication-commando/views/static-header.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-syndication-commando/oo/SSCDash.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/social-syndication-commando/views/static-header.php:5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/social-syndication-commando/oo/SSCAccount.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/social-syndication-commando/social-syndication-commando.php:10
- > PHP Fatal error
Uncaught Error: Class 'SSC_Site' not found in wp-content/plugins/social-syndication-commando/oo/sites/SSC_SiteDiigo.php:3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/social-syndication-commando/oo/SSCTwitter.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/social-syndication-commando/oo/SSCQueue.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-syndication-commando/oo/SSCTwitter.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
- Donate link: Invalid URI found ("")
social-syndication-commando/social-syndication-commando.php Passed 13 tests
"Social Syndication Commando" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
39 characters long description:
Plugin for strategic social bookmarking
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/social-syndication-commando/oo/external/facebook/fb_ca_chain_bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 43 | 1,390 | 3,367 | 9,165 |
CSS | 5 | 1,123 | 32 | 6,423 |
JavaScript | 13 | 230 | 130 | 1,422 |
HTML | 28 | 63 | 1 | 439 |
SVG | 1 | 0 | 0 | 229 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 21.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 56 | |
▷ Abstract classes | 5 | 8.93% |
▷ Concrete classes | 51 | 91.07% |
▷ Final classes | 0 | 0.00% |
Methods | 624 | |
▷ Static methods | 30 | 4.81% |
▷ Public methods | 544 | 87.18% |
▷ Protected methods | 58 | 9.29% |
▷ Private methods | 22 | 3.53% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 44 | |
▷ Global constants | 18 | 40.91% |
▷ Class constants | 26 | 59.09% |
▷ Public constants | 26 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.40MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
views/images/web.png | 67.03KB | 22.62KB | ▼ 66.25% |
views/images/games.png | 3.83KB | 1.01KB | ▼ 73.76% |
views/images/dashboard.png | 3.57KB | 0.59KB | ▼ 83.39% |
views/images/mas-media.png | 115.16KB | 35.18KB | ▼ 69.45% |
(invalid) views/images/mav.png | 67.78KB | 0.00KB | ▼ 100.00% |