Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.18ms] Passed 4 tests
An overview of server-side resources used by Network Subsite User Registration
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.79 ▼11.12 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.07 ▼4.38 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.10 ▼0.88 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 97.53 ▲7.69 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.45 ▲3.68 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
nsur_install_date |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Network Subsite User Registration
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.21 ▼1.17 | 1.66 ▼0.06 | 41.29 ▲1.00 |
Dashboard /wp-admin | 2,217 ▲26 | 4.85 ▼0.04 | 133.24 ▲25.84 | 51.62 ▲14.65 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.03 ▲0.03 | 40.87 ▼0.04 | 34.83 ▼2.00 |
Add New Post /wp-admin/post-new.php | 1,556 ▲42 | 18.65 ▲1.19 | 599.24 ▼72.13 | 52.11 ▼5.32 |
Media Library /wp-admin/upload.php | 1,387 ▼1 | 4.16 ▲0.03 | 96.35 ▼11.14 | 46.49 ▼1.05 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- nsur_install_date
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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 fix the following
- 32× GET requests to PHP files trigger server-side errors or Error 500 responses (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-wp5.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-signup-wp53.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-wp53.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-wp47.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-wp63.php:13
- > 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-wp496.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-in.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-wp57.php:13
- > 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
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
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
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
Analyzing the main PHP file in "Network Subsite User Registration" version 4.0
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
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 plugin8,968 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 2,043 | 5,314 | 8,968 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 33.20 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 70 | |
▷ Static methods | 2 | 2.86% |
▷ Public methods | 66 | 94.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 5.71% |
Functions | 230 | |
▷ Named functions | 230 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin