63% social-syndication-commando

Code Review | Social Syndication Commando

WordPress plugin Social Syndication Commando scored63%from 54 tests.

About plugin

  • Plugin page: social-syndicatio...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Nov 21, 2014
  • Latest release: Dec 6, 2014
  • Number of updates: 11
  • Update frequency: every 1.5 days
  • Top authors: Commando SEO (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,825 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.69 ▲1.92
Dashboard /wp-admin3.01 ▼0.2928.78 ▼26.54
Posts /wp-admin/edit.php3.01 ▼0.3425.79 ▼25.26
Add New Post /wp-admin/post-new.php3.01 ▼2.8723.84 ▼77.69
Media Library /wp-admin/upload.php3.01 ▼0.2224.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.44 ▲0.061.78 ▼0.6537.75 ▼7.11
Dashboard /wp-admin2,218 ▲335.88 ▲0.0197.70 ▼22.6138.36 ▼4.28
Posts /wp-admin/edit.php2,101 ▲122.02 ▲0.0139.24 ▼0.5034.52 ▼3.14
Add New Post /wp-admin/post-new.php1,524 ▲517.46 ▼5.81680.99 ▲26.9651.42 ▼17.98
Media Library /wp-admin/upload.php1,403 ▲124.18 ▼0.01102.58 ▲1.5343.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

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 ("")
The official readme.txt might help

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
17,678 lines of code in 90 files:
LanguageFilesBlank linesComment linesLines of code
PHP431,3903,3679,165
CSS51,123326,423
JavaScript132301301,422
HTML28631439
SVG100229

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 code0.30
Average class complexity21.73
▷ Minimum class complexity1.00
▷ Maximum class complexity166.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes56
▷ Abstract classes58.93%
▷ Concrete classes5191.07%
▷ Final classes00.00%
Methods624
▷ Static methods304.81%
▷ Public methods54487.18%
▷ Protected methods589.29%
▷ Private methods223.53%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants44
▷ Global constants1840.91%
▷ Class constants2659.09%
▷ Public constants26100.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
FileSize - originalSize - compressedSavings
views/images/web.png67.03KB22.62KB▼ 66.25%
views/images/games.png3.83KB1.01KB▼ 73.76%
views/images/dashboard.png3.57KB0.59KB▼ 83.39%
views/images/mas-media.png115.16KB35.18KB▼ 69.45%
(invalid) views/images/mav.png67.78KB0.00KB▼ 100.00%