10% fp-linkedin-company-profile

Code Review | FP LinkedIn Company Profile

WordPress plugin FP LinkedIn Company Profile scored10%from 54 tests.

About plugin

  • Plugin page: fp-linkedin-compa...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-3.5.2
  • WordPress version: 6.3.1
  • First release: Jul 5, 2013
  • Latest release: Jul 5, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: digontobd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /3,419 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/fp-linkedin-company-profile/fp_linkedin_company_profile.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; LinkedinCompanyProfileWidget has a deprecated constructor

Server metrics [RAM: ▼1.96MB] [CPU: ▼59.11ms] Passed 4 tests

A check of server-side resources used by FP LinkedIn Company Profile
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.425.02 ▼43.85
Dashboard /wp-admin2.11 ▼1.288.47 ▼63.20
Posts /wp-admin/edit.php2.11 ▼1.296.28 ▼44.75
Add New Post /wp-admin/post-new.php2.11 ▼3.825.90 ▼84.63
Media Library /wp-admin/upload.php2.11 ▼1.175.72 ▼33.72

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_linkedincompanyprofilewidget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

FP LinkedIn Company Profile: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.371.74 ▲0.0944.62 ▼2.21
Dashboard /wp-admin2,195 ▲185.61 ▼0.0794.61 ▼4.2242.14 ▼0.38
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0735.00 ▼0.7439.14 ▲2.75
Add New Post /wp-admin/post-new.php1,531 ▲323.18 ▲0.27688.45 ▼14.7263.17 ▼7.64
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.01100.42 ▼6.4944.84 ▼5.63

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
Please fix the following items
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/fp-linkedin-company-profile/fp_linkedin_company_profile.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; LinkedinCompanyProfileWidget has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_linkedincompanyprofilewidget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fp-linkedin-company-profile/fp_linkedin_company_profile.php:13

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (View Frontend of FP LinkedIn Company Profile Widget View. There are also two more views.), #2 (View Frontend of FP LinkedIn Copany Profile Widget View with connections.), #3 (View Backend of FP LinkedIn Company Profile Widget Settings.)
The official readme.txt might help

fp-linkedin-company-profile/fp_linkedin_company_profile.php 85% from 13 tests

"FP LinkedIn Company Profile" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fp-linkedin-company-profile.php" instead of "fp_linkedin_company_profile.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin93 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18993

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png12.63KB5.40KB▼ 57.26%
screenshot-2.png18.65KB8.18KB▼ 56.12%
screenshot-3.png14.60KB6.08KB▼ 58.35%