67% rdp-linkedin-login

Code Review | RDP Linkedin Login

WordPress plugin RDP Linkedin Login scored 67% from 54 tests.

About plugin

  • Plugin page: rdp-linkedin-login
  • Plugin version: 1.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2
  • WordPress version: 6.3.1
  • First release: Feb 10, 2016
  • Latest release: Sep 27, 2019
  • Number of updates: 129
  • Update frequency: every 10.3 days
  • Top authors: rpayne7264 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 3,683 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.55MB] [CPU: ▼2.67ms] Passed 4 tests

An overview of server-side resources used by RDP Linkedin Login
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4845.27 ▲3.08
Dashboard /wp-admin3.87 ▲0.5746.87 ▼3.12
Posts /wp-admin/edit.php3.91 ▲0.5549.16 ▲0.16
Add New Post /wp-admin/post-new.php6.54 ▲0.6687.79 ▼10.78
Media Library /wp-admin/upload.php3.81 ▲0.5838.68 ▲4.96
RDP Linkedin Login /wp-admin/options-general.php?page=rdp-linkedin-login3.6733.01

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 34 new files
Database: 1 new table, 6 new options
New tables
wp_rdp_ll_session
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for RDP Linkedin Login
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲18613.71 ▼0.915.95 ▲3.8039.82 ▼6.88
Dashboard /wp-admin2,212 ▲244.84 ▼0.06101.91 ▼9.5039.13 ▼2.05
Posts /wp-admin/edit.php2,098 ▲92.01 ▲0.0039.00 ▼1.0134.91 ▼1.99
Add New Post /wp-admin/post-new.php1,542 ▲2318.36 ▼4.56603.25 ▼2.2153.68 ▲2.71
Media Library /wp-admin/upload.php1,394 ▲124.23 ▲0.04100.69 ▼1.2245.50 ▲3.22
RDP Linkedin Login /wp-admin/options-general.php?page=rdp-linkedin-login1,0152.0224.7437.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_rdp_ll_session
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Almost there! Just fix the following items
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/rdp-linkedin-login/pl/rdpLLAdminMenu.php
    • > /wp-content/plugins/rdp-linkedin-login/bl/rdpLLDatapass.php
    • > /wp-content/plugins/rdp-linkedin-login/pl/rdpLL.php
    • > /wp-content/plugins/rdp-linkedin-login/bl/utilities.php
    • > /wp-content/plugins/rdp-linkedin-login/bl/rdpLLUtilities.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_current_blog_id() in wp-content/plugins/rdp-linkedin-login/pl/rdpLLLogin.php:20

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

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === rdp-linkedin-login === )
  • Screenshots: These screenshots require images: #1 (Log-in button in sidebar.), #2 (Pop-up actions menu for logged-in user. Additional custom links can be added via the settings page and/or PHP coding.), #3 (Settings page.)
You can look at the official readme.txt

rdp-linkedin-login/index.php 92% from 13 tests

The main PHP script in "RDP Linkedin Login" version 1.7.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("rdp-linkedin-login.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin19,980 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
JSON1009,728
CSS3188296,813
PHP95573712,808
SVG14640476
JavaScript44327155

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.42
Average class complexity65.44
▷ Minimum class complexity12.00
▷ Maximum class complexity198.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods200
▷ Static methods4824.00%
▷ Public methods17286.00%
▷ Protected methods168.00%
▷ Private methods126.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants26
▷ Global constants2596.15%
▷ Class constants13.85%
▷ Public constants1100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.58MB with 0.29MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
pl/images/js-signin.png2.41KB0.72KB▼ 69.98%
screenshot-3.png480.35KB169.32KB▼ 64.75%
screenshot-1.png24.89KB12.22KB▼ 50.89%
pl/images/ghost_person_60x60_v1.png0.34KB0.39KB0.00%
screenshot-2.png80.72KB30.07KB▼ 62.75%