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.02MB] [CPU: ▼2.92ms] Passed 4 tests
A check of server-side resources used by Protected Registration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 38.73 ▲1.86 |
Dashboard /wp-admin | 3.33 ▲0.02 | 43.70 ▼3.37 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.70 ▲2.65 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.06 ▼8.25 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.89 ▼1.93 |
Protected Registreation /wp-admin/options-general.php?page=pr-registration | 3.22 | 29.48 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Protected Registration: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.22 ▼0.14 | 2.23 ▲0.58 | 43.05 ▲0.98 |
Dashboard /wp-admin | 2,196 ▲27 | 5.51 ▼0.11 | 82.21 ▼20.68 | 38.16 ▼5.07 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.15 ▲0.16 | 40.57 ▲3.40 | 36.20 ▲1.12 |
Add New Post /wp-admin/post-new.php | 1,538 ▲2 | 18.12 ▼4.74 | 618.58 ▼27.47 | 61.08 ▲1.16 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.24 ▲0.00 | 94.62 ▼14.07 | 42.35 ▼5.18 |
Protected Registreation /wp-admin/options-general.php?page=pr-registration | 825 | 2.05 | 24.86 | 24.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/protected-registration/includes/PR_Frontend.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/protected-registration/includes/panel.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/protected-registration/includes/PR_Admin.class.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/protected-registration/PR.php:13
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: protection, invitations, keys, registration
protected-registration/PR.php 92% from 13 tests
Analyzing the main PHP file in "Protected Registration" version 0.1
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("protected-registration.php" instead of "PR.php")
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 plugin245 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 99 | 23 | 214 |
CSS | 2 | 0 | 0 | 19 |
JavaScript | 1 | 6 | 3 | 12 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 14.14KB | 7.79KB | ▼ 44.93% |