Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼308.20ms] Passed 4 tests
Analyzing server-side resources used by Network Subsite User Registration
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.19 | 51.15 ▼0.07 |
Dashboard /wp-admin | 3.53 ▲0.13 | 35.51 ▼0.03 |
Posts /wp-admin/edit.php | 3.76 ▲0.12 | 40.06 ▲3.84 |
Add New Post /wp-admin/post-new.php | 7.00 ▲0.03 | 97.04 ▼1,231.93 |
Media Library /wp-admin/upload.php | 3.41 ▲0.12 | 24.42 ▼0.78 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options |
---|
nsur_install_date |
Browser metrics Passed 4 tests
An overview of browser requirements for Network Subsite User Registration
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,780 ▲26 | 15.59 ▲0.01 | 6.27 ▲0.21 | 1.99 ▼0.56 |
Dashboard /wp-admin | 2,901 ▲40 | 6.15 ▼0.04 | 121.98 ▼30.13 | 152.77 ▼22.67 |
Posts /wp-admin/edit.php | 2,704 ▲13 | 3.24 ▼0.00 | 69.59 ▲4.38 | 155.54 ▲9.31 |
Add New Post /wp-admin/post-new.php | 1,669 ▼89 | 16.44 ▼4.85 | 409.27 ▼42.69 | 158.39 ▼3.48 |
Media Library /wp-admin/upload.php | 1,714 ▲16 | 5.50 ▼0.03 | 145.28 ▲2.60 | 183.54 ▼5.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 1 option
- nsur_install_date
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 30× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/network-subsite-user-registration/template/page-signup-wp51.php on line 12
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/network-subsite-user-registration/template/page-registration-notice-logged-out.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function nocache_headers() in wp-content/plugins/network-subsite-user-registration/template/page-signup-wp54.php:14
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/network-subsite-user-registration/template/page-signup-wp496.php on line 12
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-load.php' (include_path='.:/usr/share/php') in wp-content/plugins/network-subsite-user-registration/template/page-signup-wp5.php on line 12
- > PHP Warning
require_once(ABSPATHwp-load.php): failed to open stream: No such file or directory in wp-content/plugins/network-subsite-user-registration/template/page-registration-notice-logged-out.php on line 8
- > PHP Warning
require_once(ABSPATHwp-load.php): failed to open stream: No such file or directory in wp-content/plugins/network-subsite-user-registration/template/page-signup-wp496.php on line 12
- > PHP Warning
require_once(ABSPATHwp-load.php): failed to open stream: No such file or directory in wp-content/plugins/network-subsite-user-registration/template/page-signup-wp51.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function nocache_headers() in wp-content/plugins/network-subsite-user-registration/template/page-signup-wp59.php:13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/network-subsite-user-registration/template/page-signup-wp5.php on line 12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== network-subsite-user-registration ===
)
network-subsite-user-registration/network-subsite-user-registration.php 92% from 13 tests
"Network Subsite User Registration" version 3.7'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:
- Domain Path: The domain path folder does not exist ("/languages/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin7,776 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 1,828 | 4,634 | 7,776 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 32.40 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 2 | 2.90% |
▷ Public methods | 65 | 94.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.80% |
Functions | 199 | |
▷ Named functions | 199 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected