89% linkedin-auto-publish

Code Review | WP to LinkedIn Auto Publish

WordPress plugin WP to LinkedIn Auto Publish scored89%from 54 tests.

About plugin

  • Plugin page: linkedin-auto-pub...
  • Plugin version: 1.9.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2013
  • Latest release: Oct 12, 2023
  • Number of updates: 40
  • Update frequency: every 92.1 days
  • Top authors: f1logic (100%)

Code review

54 tests

User reviews

54 reviews

Install metrics

1,000+ active /78,184 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.14ms] Passed 4 tests

This is a short check of server-side resources used by WP to LinkedIn Auto Publish
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.09 ▼1.14
Dashboard /wp-admin3.34 ▲0.0346.13 ▼0.99
Posts /wp-admin/edit.php3.39 ▲0.0345.75 ▼0.31
Add New Post /wp-admin/post-new.php5.94 ▲0.0580.95 ▼10.10
Media Library /wp-admin/upload.php3.26 ▲0.0342.80 ▲8.01
About /wp-admin/admin.php?page=linkedin-auto-publish-about3.6236.96
Logs /wp-admin/admin.php?page=linkedin-auto-publish-log3.2732.90
Suggest a Feature /wp-admin/admin.php?page=linkedin-auto-publish-suggest-features3.3130.17
Settings /wp-admin/admin.php?page=linkedin-auto-publish-settings3.6337.66

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 76 new files
Database: no new tables, 39 new options
New WordPress options
xyz_lnap_future_to_publish
xyz_lnap_default_selection_edit
xyz_lnap_credit_dismiss
xyz_lnap_premium_version_ads
xyz_lnap_include_pages
widget_recent-posts
xyz_lnap_post_logs
lnap_installed_date
xyz_lnap_ln_shareprivate
theysaidso_admin_options
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP to LinkedIn Auto Publish
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.10 ▼0.521.59 ▼0.3438.69 ▼2.69
Dashboard /wp-admin2,238 ▲615.61 ▲0.0882.78 ▼3.0767.27 ▲21.39
Posts /wp-admin/edit.php2,143 ▲432.02 ▼0.1134.48 ▼0.7033.78 ▼1.31
Add New Post /wp-admin/post-new.php1,716 ▲19022.14 ▼0.89746.95 ▲56.1259.36 ▼4.53
Media Library /wp-admin/upload.php1,434 ▲344.14 ▼0.06102.62 ▲4.1270.01 ▲24.39
About /wp-admin/admin.php?page=linkedin-auto-publish-about2,1841.6823.1455.43
Logs /wp-admin/admin.php?page=linkedin-auto-publish-log1,1301.6823.2936.06
Suggest a Feature /wp-admin/admin.php?page=linkedin-auto-publish-suggest-features1,1211.7423.9337.57
Settings /wp-admin/admin.php?page=linkedin-auto-publish-settings1,7791.8827.36111.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • xyz_credit_link
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

linkedin-auto-publish/linkedin-auto-publish.php 92% from 13 tests

The main PHP file in "WP to LinkedIn Auto Publish" ver. 1.9.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 243 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin14,560 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PO File92,2052,3135,817
PHP196734605,417
SVG1002,671
CSS21948632
JavaScript14023

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 code0.32
Average class complexity14.77
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity2.77
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes215.38%
▷ Concrete classes1184.62%
▷ Final classes00.00%
Methods105
▷ Static methods109.52%
▷ Public methods8984.76%
▷ Protected methods76.67%
▷ Private methods98.57%
Functions36
▷ Named functions3597.22%
▷ Anonymous functions12.78%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
23 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/edit.png3.18KB2.07KB▼ 34.91%
images/facebook.png0.65KB0.65KB▼ 0.75%
images/linkedin.png0.87KB0.87KB0.00%
images/xyz.png24.23KB10.73KB▼ 55.71%
images/orange_buynow.png4.92KB2.67KB▼ 45.76%