78% remote-provisioning

Code Review | WHMCS Multi-Site Provisioning

WordPress plugin WHMCS Multi-Site Provisioning scored78%from 54 tests.

About plugin

  • Plugin page: remote-provisioning
  • Plugin version: 1.7.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 18, 2011
  • Latest release: Sep 28, 2020
  • Number of updates: 72
  • Update frequency: every 47.9 days
  • Top authors: erikpbogaerts (69.44%)globalprogramming (31.94%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /9,564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼10.25ms] Passed 4 tests

An overview of server-side resources used by WHMCS Multi-Site Provisioning
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.35 ▼11.67
Dashboard /wp-admin3.37 ▲0.0745.14 ▼4.38
Posts /wp-admin/edit.php3.41 ▲0.0546.83 ▼7.28
Add New Post /wp-admin/post-new.php6.05 ▲0.1682.07 ▼17.67
Media Library /wp-admin/upload.php3.31 ▲0.0835.12 ▼3.50
Remote Provisioning /wp-admin/options-general.php?page=cc-rp-cp3.2131.68

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WHMCS Multi-Site Provisioning
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.21 ▼0.162.44 ▲0.7039.28 ▼8.40
Dashboard /wp-admin2,199 ▲225.59 ▼0.1093.93 ▼4.0341.56 ▲1.29
Posts /wp-admin/edit.php2,104 ▲11.99 ▼0.0339.04 ▼1.8335.35 ▲0.59
Add New Post /wp-admin/post-new.php1,531 ▼023.31 ▲0.10615.74 ▼47.7644.86 ▼4.39
Media Library /wp-admin/upload.php1,407 ▲104.24 ▲0.03101.41 ▲3.3444.31 ▲0.09
Remote Provisioning /wp-admin/options-general.php?page=cc-rp-cp8142.1723.9931.24

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=cc-rp-cp
    • > Notice in wp-content/plugins/remote-provisioning/rp.php+288
    Undefined index: action
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=cc-rp-cp
    • > Notice in wp-content/plugins/remote-provisioning/rp.php+321
    Trying to access array offset on value of type null

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/remote-provisioning/rp.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 93% from 29 tests

readme.txt 94% 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
These attributes need your attention:
  • Requires at least: The plugin version is formatted incorrectly
The official readme.txt might help

remote-provisioning/rp.php 92% from 13 tests

Analyzing the main PHP file in "WHMCS Multi-Site Provisioning" version 1.7.0
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("remote-provisioning.php" instead of "rp.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
Good job! No executable or dangerous file extensions detected257 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15129257

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
logo.png15.68KB5.12KB▼ 67.33%