78% remsupp

Code Review | RemSupp – Remote Access & Co-Browsing for WordPress

WordPress plugin RemSupp – Remote Access & Co-Browsing for WordPress scored78%from 54 tests.

About plugin

  • Plugin page: remsupp
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Apr 11, 2022
  • Latest release: Apr 12, 2022
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: michalzaq12 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,363 total downloads

Benchmarks

Plugin footprint 83% 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.04MB] [CPU: ▼10.60ms] Passed 4 tests

This is a short check of server-side resources used by RemSupp – Remote Access & Co-Browsing for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.20 ▲0.68
Dashboard /wp-admin3.35 ▲0.0441.30 ▼7.55
Posts /wp-admin/edit.php3.46 ▲0.1041.22 ▼7.04
Add New Post /wp-admin/post-new.php5.93 ▲0.0481.92 ▼28.48
Media Library /wp-admin/upload.php3.27 ▲0.0432.91 ▲1.88

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

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

Browser metrics Passed 4 tests

A check of browser resources used by RemSupp – Remote Access & Co-Browsing for WordPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.26 ▼1.134.22 ▲2.6537.43 ▼3.36
Dashboard /wp-admin2,241 ▲534.90 ▼0.03112.14 ▲10.0845.50 ▲0.63
Posts /wp-admin/edit.php2,124 ▲352.07 ▲0.0338.07 ▼1.2734.44 ▲0.77
Add New Post /wp-admin/post-new.php1,527 ▼117.61 ▼0.55593.96 ▼10.9352.75 ▼6.50
Media Library /wp-admin/upload.php1,430 ▲424.22 ▲0.0397.22 ▼1.8341.59 ▼5.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/remsupp/views/iframe.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remsupp/bootstrap.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please describe screenshot #3 in remsupp/assets to your readme.txt
You can take inspiration from this readme.txt

remsupp/bootstrap.php 92% from 13 tests

The principal PHP file in "RemSupp – Remote Access & Co-Browsing for WordPress" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("remsupp.php" instead of "bootstrap.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin253 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP105479253

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity1.62
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods25
▷ Static methods832.00%
▷ Public methods2288.00%
▷ Protected methods00.00%
▷ Private methods312.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin