10% ps-wp-multi-domain

Code Review | PS WP Multi Domain

WordPress plugin PS WP Multi Domain scored 10% from 54 tests.

About plugin

  • Plugin page: ps-wp-multi-domain
  • Plugin version: 0.8.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-2.7
  • WordPress version: 5.8.1
  • First release: Feb 26, 2009
  • Latest release: Aug 26, 2019
  • Number of updates: 9
  • Update frequency: every 426.0 days
  • Top authors: primestrategy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 4,347 total downloads

Benchmarks

Plugin footprint 75% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Parse error in wp-content/plugins/ps-wp-multi-domain/ps-wp-multidomain.php+115
    syntax error, unexpected 'new' (T_NEW)

Server metrics [RAM: ▼0.00MB] [CPU: ▼137.25ms] Passed 4 tests

This is a short check of server-side resources used by PS WP Multi Domain
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.83 ▲0.1229.16 ▲9.80
Dashboard /wp-admin3.06 ▲0.0045.14 ▲1.09
Posts /wp-admin/edit.php3.11 ▲0.0039.19 ▼1.06
Add New Post /wp-admin/post-new.php5.42 ▼0.0189.53 ▼540.37
Media Library /wp-admin/upload.php3.00 ▼0.0130.93 ▼8.64

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for PS WP Multi Domain
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.83 ▲0.6211.02 ▲1.1548.81 ▲4.25
Dashboard /wp-admin2,970 ▲365.89 ▼0.20137.84 ▼1.50101.80 ▼2.49
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0161.81 ▼3.5886.47 ▼2.99
Add New Post /wp-admin/post-new.php1,872 ▼019.16 ▲0.04367.23 ▲4.14106.02 ▼6.13
Media Library /wp-admin/upload.php1,736 ▼715.00 ▼0.03149.06 ▼0.42114.46 ▼9.12

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected 'new' (T_NEW) in wp-content/plugins/ps-wp-multi-domain/ps-wp-multidomain.php on line 115

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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 important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add an image for screenshot #1 (Same WordPress in different URL.)
The official readme.txt might help

ps-wp-multi-domain/ps-wp-multidomain.php 92% from 13 tests

The entry point to "PS WP Multi Domain" version 0.8.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ps-wp-multi-domain.php" instead of "ps-wp-multidomain.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin107 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1151486
PO File14321

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png81.42KB28.49KB▼ 65.01%