Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼311.00ms] Passed 4 tests
Analyzing server-side resources used by User Period Register
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.03 | 51.65 ▲0.16 |
Dashboard /wp-admin | 3.44 ▲0.04 | 33.93 ▲1.71 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 45.84 ▲8.65 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 90.39 ▼1,247.99 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 25.53 ▲2.13 |
User Period Register /wp-admin/options-general.php?page=userperiodregister | 3.29 | 22.54 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 1 new option
New WordPress options |
---|
userperiodregister |
Browser metrics Passed 4 tests
Checking browser requirements for User Period Register
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,800 ▲58 | 16.06 ▲0.36 | 5.92 ▼0.50 | 2.56 ▲0.37 |
Dashboard /wp-admin | 2,897 ▲36 | 6.10 ▼0.09 | 117.44 ▼18.00 | 156.24 ▼2.90 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.23 ▼0.01 | 63.17 ▼0.68 | 133.44 ▼11.30 |
Add New Post /wp-admin/post-new.php | 1,671 ▲10 | 18.07 ▲1.60 | 413.01 ▲17.23 | 153.95 ▼3.26 |
Media Library /wp-admin/upload.php | 1,703 ▲2 | 5.52 ▲0.02 | 135.92 ▼0.45 | 181.60 ▲0.30 |
User Period Register /wp-admin/options-general.php?page=userperiodregister | 1,267 | 2.49 | 55.47 | 120.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
This plugin's uninstaller ran successfully
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 | 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
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/user-period-register/lib/class-userperiodregister.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-period-register/lib/class-userperiodregisteradmin.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-period-register/lib/class-userperiodregisterregist.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-period-register/lib/class-userperiodregisterregist.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: users, roles, register
user-period-register/userperiodregister.php 92% from 13 tests
The principal PHP file in "User Period Register" v. 1.07 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("user-period-register.php" instead of "userperiodregister.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin513 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 115 | 250 | 513 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 25.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected