62% company-updates-for-linkedin

Code Review | LinkedIn Company Updates

WordPress plugin LinkedIn Company Updates scored 62% from 54 tests.

About plugin

  • Plugin page: company-updates-f...
  • Plugin version: 1.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.7
  • WordPress version: 5.8.1
  • First release: Dec 17, 2015
  • Latest release: Dec 12, 2016
  • Number of updates: 61
  • Update frequency: every 6.0 days
  • Top authors: rockwell15 (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

2,000+ active / 23,753 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.97MB] [CPU: ▼174.91ms] Passed 4 tests

This is a short check of server-side resources used by LinkedIn Company Updates
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.63 ▼0.2114.98 ▼10.87
Dashboard /wp-admin2.68 ▼0.3816.83 ▼26.91
Posts /wp-admin/edit.php2.68 ▼0.4314.20 ▼21.92
Add New Post /wp-admin/post-new.php2.68 ▼2.7612.80 ▼636.09
Media Library /wp-admin/upload.php2.68 ▼0.3212.18 ▼14.72
Linkedin Company Updates /wp-admin/options-general.php?page=linkedin_company_updates1.987.68

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 2 new options
New WordPress options
linkedin_company_updates
linkedin_company_updates_version

Browser metrics Passed 4 tests

An overview of browser requirements for LinkedIn Company Updates
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,695 ▲9415.97 ▼0.059.44 ▲3.3976.29 ▲1.76
Dashboard /wp-admin2,962 ▲636.08 ▲0.03116.21 ▼16.36165.37 ▼8.07
Posts /wp-admin/edit.php2,772 ▲293.25 ▲0.0164.41 ▼1.00132.86 ▼6.29
Add New Post /wp-admin/post-new.php3,829 ▲9419.13 ▲1.55412.54 ▼56.02164.49 ▼5.52
Media Library /wp-admin/upload.php1,781 ▲295.48 ▲0.03151.62 ▲8.41188.31 ▼1.75
Linkedin Company Updates /wp-admin/options-general.php?page=linkedin_company_updates1,4632.5557.82146.87

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/company-updates-for-linkedin/linkedin-company-updates.php+249
    Trying to access array offset on value of type bool
  • The uninstall procedure has failed, leaving 2 options in the database
    • linkedin_company_updates
    • linkedin_company_updates_version

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=linkedin_company_updates
    • > Warning in wp-content/plugins/company-updates-for-linkedin/linkedin-company-updates.php+175
    Invalid argument supplied for foreach()
    • > GET request to /wp-admin/options-general.php?page=linkedin_company_updates
    • > Notice in wp-content/plugins/company-updates-for-linkedin/linkedin-company-updates.php+249
    Trying to access array offset on value of type bool

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
Please fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/company-updates-for-linkedin/linkedin-company-updates.php

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=linkedin_company_updates
    • > Network (severe)
    wp-content/plugins/css/style-admin.css?ver=1.5.3 - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/options-general.php?page=linkedin_company_updates
    • > Network (severe)
    wp-content/plugins/js/script.js?ver=1.5.3 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
9 plugin tags: latest, update, company, recent, linkedin...

company-updates-for-linkedin/linkedin-company-updates.php 92% from 13 tests

The main file in "LinkedIn Company Updates" v. 1.5.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("company-updates-for-linkedin.php" instead of "linkedin-company-updates.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin850 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP2246210553
PO File28286225
CSS37741
JavaScript210131

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity31.00
▷ Minimum class complexity2.00
▷ Maximum class complexity60.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods00.00%
▷ Public methods2376.67%
▷ Protected methods00.00%
▷ Private methods723.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.36MB with 0.23MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/help_image.png364.76KB134.05KB▼ 63.25%