84% wp-social-integration

Code Review | WP Social Integration

WordPress plugin WP Social Integration scored84%from 54 tests.

About plugin

  • Plugin page: wp-social-integra...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2.1
  • WordPress version: 6.3.1
  • First release: Oct 25, 2014
  • Latest release: Oct 20, 2019
  • Number of updates: 24
  • Update frequency: every 75.9 days
  • Top authors: mitsol (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,650 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.13MB] [CPU: ▼4.49ms] Passed 4 tests

This is a short check of server-side resources used by WP Social Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1541.63 ▼0.23
Dashboard /wp-admin3.44 ▲0.1349.17 ▼2.43
Posts /wp-admin/edit.php3.49 ▲0.1353.76 ▲3.89
Add New Post /wp-admin/post-new.php6.02 ▲0.1384.76 ▼16.64
Media Library /wp-admin/upload.php3.37 ▲0.1339.85 ▲1.35

Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
wp_scintg_plugin_home_feed_settings
wp_scintg_plugin_meta_settings
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

WP Social Integration: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5414.44 ▼0.101.85 ▲0.2742.98 ▼2.54
Dashboard /wp-admin2,210 ▲335.52 ▼0.0992.18 ▼2.3439.40 ▼2.95
Posts /wp-admin/edit.php2,121 ▲212.01 ▼0.0339.97 ▲0.7936.16 ▼0.91
Add New Post /wp-admin/post-new.php1,541 ▲1523.16 ▼0.02674.81 ▼13.3857.37 ▲1.55
Media Library /wp-admin/upload.php1,415 ▲154.18 ▲0.05111.46 ▼6.4347.28 ▼1.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-social-integration/wp-social-integration.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-social-integration/wp-social-integration_meta.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
You can take inspiration from this readme.txt

wp-social-integration/wp-social-integration.php Passed 13 tests

"WP Social Integration" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
131 characters long description:
facebook login, open graph and basic meta tags for social media, facebook home news feed, social(facebook..) plugins (free version)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected6,862 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS2965295,391
PHP42825021,471

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions38
▷ Named functions38100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/comment-icon.png0.57KB0.35KB▼ 39.15%