84% wp-linkedin-auto-publish

Code Review | WP LinkedIn Auto Publish

WordPress plugin WP LinkedIn Auto Publish scored84%from 54 tests.

About plugin

  • Plugin page: wp-linkedin-auto-...
  • Plugin version: 8.10
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.2
  • WordPress version: 6.3.1
  • First release: Dec 28, 2016
  • Latest release: Oct 20, 2023
  • Number of updates: 208
  • Update frequency: every 12.0 days
  • Top authors: northernbeacheswebsites (100%)

Code review

54 tests

User reviews

83 reviews

Install metrics

9,000+ active /212,596 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.07MB] [CPU: ▼12.32ms] Passed 4 tests

This is a short check of server-side resources used by WP LinkedIn Auto Publish
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2448.37 ▲11.65
Dashboard /wp-admin3.56 ▲0.2149.40 ▼10.33
Posts /wp-admin/edit.php3.68 ▲0.3246.54 ▲0.47
Add New Post /wp-admin/post-new.php5.45 ▼0.4458.94 ▼41.81
Media Library /wp-admin/upload.php3.48 ▲0.2536.04 ▲2.41

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP LinkedIn Auto Publish
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲5314.61 ▲0.221.84 ▼0.0043.61 ▲1.66
Dashboard /wp-admin2,227 ▲505.54 ▼0.1283.81 ▼3.0338.06 ▼1.20
Posts /wp-admin/edit.php2,154 ▲542.02 ▲0.0836.61 ▼5.9331.24 ▼5.68
Add New Post /wp-admin/post-new.php1,546 ▲1823.32 ▲0.34663.06 ▼11.2563.83 ▲11.75
Media Library /wp-admin/upload.php1,439 ▲424.35 ▲0.1696.88 ▼4.5442.08 ▼1.27

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
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-linkedin-auto-publish/wp-linkedin-auto-publish.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: social network auto publish, linkedin profile, social media auto publish, auto publish, linkedin...

wp-linkedin-auto-publish/wp-linkedin-auto-publish.php Passed 13 tests

The main file in "WP LinkedIn Auto Publish" v. 8.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
74 characters long description:
Publish your latest posts to LinkedIn profiles or companies automatically.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected5,828 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
SVG2012,685
PHP48663841,597
PO File8304312908
JavaScript235550345
CSS3654293

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions49
▷ Named functions49100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
inc/images/google.png18.25KB10.75KB▼ 41.12%