62% rdp-ingroups

Code Review | RDP inGroups+

WordPress plugin RDP inGroups+ scored62%from 54 tests.

About plugin

  • Plugin page: rdp-ingroups
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3.1
  • WordPress version: 6.3.1
  • First release: May 20, 2015
  • Latest release: Feb 14, 2016
  • Number of updates: 103
  • Update frequency: every 7.3 days
  • Top authors: rpayne7264 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,823 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.61MB] [CPU: ▼45.12ms] Passed 4 tests

Analyzing server-side resources used by RDP inGroups+
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.25 ▼0.2118.00 ▼22.75
Dashboard /wp-admin3.45 ▲0.1021.47 ▼42.05
Posts /wp-admin/edit.php3.45 ▲0.0919.58 ▼30.34
Add New Post /wp-admin/post-new.php3.45 ▼2.4417.75 ▼85.34
Media Library /wp-admin/upload.php3.45 ▲0.2220.32 ▼14.86
RDP inGroups+ /wp-admin/options-general.php?page=rdp-ligroups3.4518.47

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for RDP inGroups+
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲17713.65 ▼0.798.91 ▲7.1843.51 ▲3.75
Dashboard /wp-admin2,212 ▲275.84 ▲0.9198.97 ▼9.2139.10 ▼2.64
Posts /wp-admin/edit.php2,098 ▲92.06 ▲0.0439.75 ▼1.2436.12 ▲1.59
Add New Post /wp-admin/post-new.php1,600 ▲6717.43 ▼5.91702.79 ▲51.9359.15 ▼1.23
Media Library /wp-admin/upload.php1,394 ▲64.27 ▲0.0892.81 ▼2.8540.02 ▼3.83
RDP inGroups+ /wp-admin/options-general.php?page=rdp-ligroups1,1642.0722.6034.18

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
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/rdp-ingroups/bl/rdpLIGBrowser.php+40
    Methods with the same name as their class will not be constructors in a future version of PHP; RDP_LIG_Browser has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=rdp-ligroups
    • > Deprecated in wp-content/plugins/rdp-ingroups/bl/rdpLIGBrowser.php+40
    Methods with the same name as their class will not be constructors in a future version of PHP; RDP_LIG_Browser has a deprecated constructor

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 13× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/rdp-ingroups/bl/rdpLIGGroup.php
    • > /wp-content/plugins/rdp-ingroups/bl/rdpLIGDatapass.php
    • > /wp-content/plugins/rdp-ingroups/bl/rdpLIGReferencedItem.php
    • > /wp-content/plugins/rdp-ingroups/bl/rdpLIGBrowser.php
    • > /wp-content/plugins/rdp-ingroups/bl/rdpLIGLoader.php
    • > /wp-content/plugins/rdp-ingroups/ws/rss.php
    • > /wp-content/plugins/rdp-ingroups/bl/rdpLIGCompany.php
    • > /wp-content/plugins/rdp-ingroups/pl/rdpLIG.php
    • > /wp-content/plugins/rdp-ingroups/bl/rdpLIGGroupProfile.php
    • > /wp-content/plugins/rdp-ingroups/bl/rdpLIGGroups.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/rdp-ingroups/pl/rdpLIGLogin.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === rdp-ingroups === )
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Login button shortcode in sidebar.), #2 (Group shortcode, using the ID attribute to specify a LinkedIn group, embedded in a page. Notice that the user is not logged in. The first ten discussions have been scrapped from LinkedIn and displayed. If the group is open, a public RSS feed is made available, displaying the five most recent discussions.), #3 (Group shortcode, using the ID attribute to specify a LinkedIn group, embedded in a page and with the user logged in.), #4 (Popup action menu for logged-in user. Additional custom links can be added with a little PHP coding.), #5 (Single discussion as seen by a non-logged-in visitor - must log in to see comments.), #6 (Single discussion as seen by a logged-in user.), #7 (Offer sharing of single discussions, using the Bitly API.), #8 (Settings page.), #9 (Button to launch the shortcode embed helper form), #10 (How to find a group ID), #11 (Discussion URL dissected)
You can take inspiration from this readme.txt

rdp-ingroups/index.php 92% from 13 tests

"RDP inGroups+" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("rdp-ingroups.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin11,961 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
CSS3176146,403
PHP188838024,785
JavaScript1014442773

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity52.32
▷ Minimum class complexity1.00
▷ Maximum class complexity198.00
Average method complexity4.12
▷ Minimum method complexity1.00
▷ Maximum method complexity57.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods313
▷ Static methods7423.64%
▷ Public methods22070.29%
▷ Protected methods5918.85%
▷ Private methods3410.86%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants81
▷ Global constants2429.63%
▷ Class constants5770.37%
▷ Public constants57100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
27 PNG files occupy 0.62MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
pl/images/rss-icon.png1.47KB1.41KB▼ 4.12%
pl/images/notice-icon.png0.44KB0.29KB▼ 32.44%
screenshot-5.png50.94KB18.03KB▼ 64.61%
pl/images/sprite_sharing_v13.png3.72KB3.50KB▼ 6.01%
screenshot-3.png83.38KB29.93KB▼ 64.10%