77% wp-ispconfig

Code Review | WP-ISPConfig

WordPress plugin WP-ISPConfig scored77%from 54 tests.

About plugin

  • Plugin page: wp-ispconfig
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.3
  • WordPress version: 6.3.1
  • First release: Sep 20, 2013
  • Latest release: Nov 2, 2019
  • Number of updates: 14
  • Update frequency: every 159.6 days
  • Top authors: etruel (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

20+ active /4,191 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.46MB] [CPU: ▼4.23ms] Passed 4 tests

Analyzing server-side resources used by WP-ISPConfig
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.93 ▲0.4748.93 ▲3.80
Dashboard /wp-admin3.81 ▲0.5053.88 ▼2.47
Posts /wp-admin/edit.php3.86 ▲0.5056.44 ▲2.13
Add New Post /wp-admin/post-new.php6.33 ▲0.4492.91 ▼20.38
Media Library /wp-admin/upload.php3.67 ▲0.4441.05 ▲7.26
Settings /wp-admin/admin.php?page=ispconfig_settings3.6436.64
New Website /wp-admin/admin.php?page=wpispconfig_new_website3.6135.20
WP-ISPConfig /wp-admin/admin.php?page=ispconfig_dashboard3.6437.45
Domain Alias /wp-admin/admin.php?page=wpispconfig_domain_alias3.6435.77
Default Values /wp-admin/admin.php?page=ispconfig_defaultvalues3.6440.68

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WP-ISPConfig
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8714.25 ▼0.482.07 ▲0.3643.84 ▲0.69
Dashboard /wp-admin2,217 ▲405.51 ▼0.2188.14 ▼3.3073.92 ▲31.12
Posts /wp-admin/edit.php2,140 ▲371.98 ▼0.0337.80 ▼3.2834.68 ▼2.34
Add New Post /wp-admin/post-new.php1,566 ▲2918.31 ▼0.08631.04 ▼44.09168.16 ▲105.66
Media Library /wp-admin/upload.php1,434 ▲344.07 ▼0.11100.97 ▼12.9175.88 ▲27.82
Settings /wp-admin/admin.php?page=ispconfig_settings1,0602.2832.2629.34
New Website /wp-admin/admin.php?page=wpispconfig_new_website1,3462.1925.1127.29
WP-ISPConfig /wp-admin/admin.php?page=ispconfig_dashboard9312.1625.4427.41
Domain Alias /wp-admin/admin.php?page=wpispconfig_domain_alias1,0572.1826.3226.81
Default Values /wp-admin/admin.php?page=ispconfig_defaultvalues9672.1926.2633.79

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpispconfig_new_website
    • > Notice in wp-content/plugins/wp-ispconfig/includes/new-website.php+344
    Undefined variable: selected_server
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpispconfig_new_website
    • > Notice in wp-content/plugins/wp-ispconfig/includes/new-website.php+344
    Undefined variable: php_versions
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wpispconfig_new_website
    • > Notice in wp-content/plugins/wp-ispconfig/includes/new-website.php+344
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/admin.php?page=wpispconfig_new_website
    • > Warning in wp-content/plugins/wp-ispconfig/includes/new-website.php+344
    Invalid argument supplied for foreach()

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
    • > GET request to /wp-admin/admin.php?page=wpispconfig_new_website
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=wpispconfig_new_website 238:38 Uncaught SyntaxError: Unexpected token ';'

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Donate link: Invalid url: "esteban@netmdp.com"
  • Screenshots: These screenshots do not have images: #1 (Screen: adding an entire website just with minimal data.), #2 (Settings page to connect to the remote server with Soap or REST API ISPConfig.), #3 (The default values to use in the fields when create websites.), #4 (The Dashboard of the plugin shows a summary of the websites in the hosting.)
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt is a good inspiration

wp-ispconfig/wp-ispconfig.php 92% from 13 tests

"WP-ISPConfig" version 3.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
No dangerous file extensions were detected2,593 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP104652442,462
JavaScript3171106
CSS10019
Markdown1506

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity23.89
▷ Minimum class complexity8.00
▷ Maximum class complexity73.00
Average method complexity3.04
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods101
▷ Static methods5857.43%
▷ Public methods101100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.29MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/prou.png0.99KB1.25KB0.00%
screenshot-1.png78.48KB27.75KB▼ 64.64%
assets/images/pror.png0.84KB1.02KB0.00%
screenshot-3.png59.21KB21.25KB▼ 64.12%
assets/images/NetMdP.png10.46KB4.61KB▼ 55.91%