Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼143.73ms] Passed 4 tests
Server-side resources used by Custom WP Registration Form
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.16 | 35.20 ▲14.31 |
Dashboard /wp-admin | 3.10 ▲0.05 | 53.20 ▲5.73 |
Posts /wp-admin/edit.php | 3.15 ▲0.05 | 46.60 ▼0.27 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 93.19 ▼575.44 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 31.61 ▼4.92 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Custom WP Registration Form
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.10 ▲0.74 | 10.79 ▲2.50 | 45.31 ▼1.70 |
Dashboard /wp-admin | 2,970 ▲39 | 5.89 ▼0.07 | 141.06 ▼0.70 | 109.98 ▲6.73 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.72 ▼0.01 | 76.32 ▲1.82 | 91.72 ▲6.33 |
Add New Post /wp-admin/post-new.php | 1,615 ▲11 | 21.28 ▲2.69 | 295.12 ▼93.14 | 109.51 ▲1.12 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.02 ▼0.00 | 155.70 ▼9.56 | 125.97 ▲2.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
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
Good news, no errors were detected
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 items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-wp-registration-form/custom-wp-registration-form.php:325
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: custom, secure, wordpress plugin, registration form, registration
custom-wp-registration-form/custom-wp-registration-form.php Passed 13 tests
The main PHP file in "Custom WP Registration Form" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
63 characters long description:
Registration form with wp_nonce, spam honey pot, error handling
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin353 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 35 | 60 | 232 |
Markdown | 1 | 19 | 0 | 121 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 10.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.13MB with 0.10MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 47.32KB | 12.14KB | ▼ 74.35% |
assets/screenshot-1.png | 34.04KB | 8.35KB | ▼ 75.46% |
assets/screenshot-3.png | 55.57KB | 14.51KB | ▼ 73.88% |