78% wp-ispconfig3

Code Review | WP-ISPConfig 3

WordPress plugin WP-ISPConfig 3 scored 78% from 54 tests.

About plugin

  • Plugin page: wp-ispconfig3
  • Plugin version: 1.5.6
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 16, 2016
  • Latest release: Apr 9, 2021
  • Number of updates: 77
  • Update frequency: every 24.0 days
  • Top authors: ole1986 (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

40+ active / 6,429 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.62ms] Passed 4 tests

Analyzing server-side resources used by WP-ISPConfig 3
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0745.99 ▲1.43
Dashboard /wp-admin3.37 ▲0.0755.47 ▲4.48
Posts /wp-admin/edit.php3.48 ▲0.1360.14 ▲4.89
Add New Post /wp-admin/post-new.php5.98 ▲0.09103.32 ▼14.97
Media Library /wp-admin/upload.php3.29 ▲0.0736.82 ▼1.43
Databases /wp-admin/admin.php?page=ispconfig_databases3.2735.58
Settings /wp-admin/admin.php?page=ispconfig_settings3.2636.72
Websites /wp-admin/admin.php?page=ispconfig_websites3.2743.13

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP-ISPConfig 3
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,859 ▲7013.49 ▲0.302.43 ▲0.7740.38 ▼8.26
Dashboard /wp-admin2,222 ▲134.95 ▼0.91100.18 ▲0.1075.11 ▲34.63
Posts /wp-admin/edit.php2,120 ▲282.05 ▲0.0438.81 ▼1.6037.00 ▲1.55
Add New Post /wp-admin/post-new.php6,444 ▲4,92720.49 ▲2.86879.62 ▲257.77185.07 ▲127.95
Media Library /wp-admin/upload.php1,410 ▲194.25 ▲0.13101.14 ▼9.7273.15 ▲26.40
Databases /wp-admin/admin.php?page=ispconfig_databases8761.6828.4534.32
Settings /wp-admin/admin.php?page=ispconfig_settings1,0641.6932.6135.29
Websites /wp-admin/admin.php?page=ispconfig_websites8942.0725.6728.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% 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 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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-ispconfig3/index.php
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      require_once(WPISPCONFIG3_PLUGIN_DIRmanage/ispconfig_database_list.php): failed to open stream: No such file or directory in wp-content/plugins/wp-ispconfig3/manage/ispconfig_database.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'WPISPCONFIG3_PLUGIN_DIRmanage/ispconfig_website_list.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-ispconfig3/manage/ispconfig_website.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'WPISPCONFIG3_PLUGIN_DIRmanage/ispconfig_database_list.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-ispconfig3/manage/ispconfig_database.php on line 2
    • > PHP Warning
      require_once(WPISPCONFIG3_PLUGIN_DIRmanage/ispconfig_website_list.php): failed to open stream: No such file or directory in wp-content/plugins/wp-ispconfig3/manage/ispconfig_website.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ispconfig3/ispconfig-blocks.php:7
    • > PHP Warning
      Use of undefined constant WPISPCONFIG3_PLUGIN_DIR - assumed 'WPISPCONFIG3_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-ispconfig3/manage/ispconfig_website.php on line 3
    • > PHP Warning
      Use of undefined constant WPISPCONFIG3_PLUGIN_DIR - assumed 'WPISPCONFIG3_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-ispconfig3/manage/ispconfig_database.php on line 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

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
Attributes that require attention:
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-ispconfig3/index.php 92% from 13 tests

"WP-ISPConfig 3" version 1.5.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-ispconfig3.php" instead of "index.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
There were no executable files found in this plugin2,947 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP93762081,767
JavaScript39318405
JSON300348
PO File21016220
Bourne Shell215066
CSS26249
SVG10038
XML11133
Markdown113021

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity26.20
▷ Minimum class complexity1.00
▷ Maximum class complexity126.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes110.00%
▷ Concrete classes990.00%
▷ Final classes00.00%
Methods93
▷ Static methods1313.98%
▷ Public methods6772.04%
▷ Protected methods1617.20%
▷ Private methods1010.75%
Functions15
▷ Named functions16.67%
▷ Anonymous functions1493.33%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ispconfig.png0.35KB0.35KB0.00%