10% wpmu-user-own-site

Code Review | WPMU User own site

WordPress plugin WPMU User own site scored10%from 54 tests.

About plugin

  • Plugin page: wpmu-user-own-site
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Dec 3, 2015
  • Latest release: Dec 3, 2015
  • Number of updates: 3
  • Update frequency: every 0.7 days
  • Top authors: gavrilov.web (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /890 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wpmu-user-own-site/wp-auto-mu.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; MyGeweb_WPMU has a deprecated constructor

Server metrics [RAM: ▼1.88MB] [CPU: ▼51.04ms] Passed 4 tests

Analyzing server-side resources used by WPMU User own site
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.354.30 ▼36.05
Dashboard /wp-admin2.13 ▼1.186.61 ▼42.33
Posts /wp-admin/edit.php2.13 ▼1.236.32 ▼38.64
Add New Post /wp-admin/post-new.php2.13 ▼3.765.73 ▼87.13
Media Library /wp-admin/upload.php2.13 ▼1.105.96 ▼27.29

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

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

Browser metrics Passed 4 tests

WPMU User own site: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.32 ▼0.981.77 ▼0.0937.85 ▼2.19
Dashboard /wp-admin2,206 ▲155.83 ▲0.9992.98 ▼23.4240.22 ▼4.94
Posts /wp-admin/edit.php2,089 ▼02.06 ▲0.0339.15 ▲5.1733.77 ▲0.28
Add New Post /wp-admin/post-new.php1,520 ▼820.74 ▲2.30660.27 ▲56.2849.94 ▼1.42
Media Library /wp-admin/upload.php1,388 ▲34.26 ▼0.02100.10 ▲3.3044.06 ▲1.72

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/wpmu-user-own-site/wp-auto-mu.php+28
    Methods with the same name as their class will not be constructors in a future version of PHP; MyGeweb_WPMU has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/wpmu-user-own-site/wp-auto-mu.php:210
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wpmu-user-own-site/geweb-mu/register.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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 images for these screenshots: #1 (Use Recaptcha to save your site from spam sites.), #2 (Example of frontend view.)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wpmu-user-own-site === )
The official readme.txt might help

wpmu-user-own-site/wp-auto-mu.php 92% from 13 tests

"WPMU User own site" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("wpmu-user-own-site.php" instead of "wp-auto-mu.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
Success! There were no dangerous files found in this plugin226 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33625226

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.50
▷ Minimum class complexity3.00
▷ Maximum class complexity26.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin