10% fp-linkedin-profile

Code Review | FP LinkedIn Profile

WordPress plugin FP LinkedIn Profile scored10%from 54 tests.

About plugin

  • Plugin page: fp-linkedin-profile
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 25, 2013
  • Latest release: Jun 26, 2013
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: digontobd (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /8,853 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/fp-linkedin-profile/fp_linkedin_profile.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; LinkedinProfileWidget has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼53.95ms] Passed 4 tests

A check of server-side resources used by FP LinkedIn Profile
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.21 ▼34.07
Dashboard /wp-admin2.10 ▼1.245.81 ▼51.78
Posts /wp-admin/edit.php2.10 ▼1.265.29 ▼42.76
Add New Post /wp-admin/post-new.php2.10 ▼3.795.80 ▼87.17
Media Library /wp-admin/upload.php2.10 ▼1.135.13 ▼29.47

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_linkedinprofilewidget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by FP LinkedIn Profile
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.611.65 ▼0.0337.32 ▼7.37
Dashboard /wp-admin2,192 ▲115.62 ▼0.0994.57 ▼2.7839.59 ▼2.02
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0138.13 ▲1.7135.84 ▲3.66
Add New Post /wp-admin/post-new.php1,526 ▼223.52 ▲0.33593.15 ▼97.1147.91 ▼13.85
Media Library /wp-admin/upload.php1,400 ▼34.25 ▲0.0496.01 ▲0.0443.39 ▼1.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/fp-linkedin-profile/fp_linkedin_profile.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; LinkedinProfileWidget has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_linkedinprofilewidget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fp-linkedin-profile/fp_linkedin_profile.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% 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
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (View Frontend of FP LinkedIn Profile Widget View. There are also two more views.), #2 (View Frontend of FP LinkedIn Profile Widget View with connections.), #3 (View Backend of FP LinkedIn Profile Widget Settings.)
The official readme.txt might help

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

The main PHP file in "FP LinkedIn Profile" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 162 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fp-linkedin-profile.php" instead of "fp_linkedin_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
No dangerous file extensions were detected93 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP18993

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for 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

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png36.23KB14.25KB▼ 60.68%
screenshot-3.png13.53KB5.60KB▼ 58.64%
screenshot-1.png23.81KB8.82KB▼ 62.97%