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
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.29ms] Passed 4 tests
A check of server-side resources used by Registration Wall
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 42.30 ▼1.33 |
Dashboard /wp-admin | 3.37 ▲0.07 | 44.39 ▼7.97 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 47.36 ▼2.99 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 85.18 ▼7.36 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.17 ▼2.83 |
Registration Wall /wp-admin/options-general.php?page=registration-wall-settings | 3.32 | 34.56 |
Server storage [IO: ▲4.88MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 720 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Registration Wall
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲175 | 13.58 ▼0.72 | 5.78 ▲3.89 | 44.00 ▲0.31 |
Dashboard /wp-admin | 2,213 ▲25 | 5.86 ▲0.97 | 109.01 ▼9.41 | 36.94 ▼11.18 |
Posts /wp-admin/edit.php | 2,093 ▲7 | 2.03 ▲0.01 | 37.54 ▲1.18 | 33.79 ▼2.22 |
Add New Post /wp-admin/post-new.php | 1,517 ▼12 | 17.64 ▼5.81 | 680.93 ▼11.03 | 54.62 ▼3.31 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.15 ▼0.04 | 95.95 ▼15.08 | 41.73 ▼9.66 |
Registration Wall /wp-admin/options-general.php?page=registration-wall-settings | 1,920 | 7.47 | 153.30 | 157.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=registration-wall-settings
- > Warning in wp-content/plugins/registration-wall/admin/partials/settings.php+72
in_array() expects parameter 2 to be array, bool given
SRP 0% 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/registration-wall/public/partials/registration-wall-public-display.php
- 11× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Grav\\Console\\ConsoleCommand' not found in wp-content/plugins/registration-wall/vendor/select2/select2/docs/plugins/error/cli/LogCommand.php:13
- > PHP Warning
Use of undefined constant REGISTRATION_WALL_URL - assumed 'REGISTRATION_WALL_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/registration-wall/admin/partials/settings.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/registration-wall/vendor/select2/select2/docs/plugins/error/error.php:11
- > PHP Fatal error
Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/registration-wall/vendor/select2/select2/docs/plugins/anchors/anchors.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/registration-wall/admin/partials/settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/registration-wall/vendor/select2/select2/docs/plugins/highlight/highlight.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/registration-wall/admin/partials/settings-sidebar.php:4
- > PHP Fatal error
Uncaught Error: Class 'Grav\\Common\\Theme' not found in wp-content/plugins/registration-wall/vendor/select2/select2/docs/themes/learn2/learn2.php:6
- > PHP Fatal error
Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/registration-wall/vendor/select2/select2/docs/plugins/problems/problems.php:8
- > PHP Fatal error
Uncaught Error: Class 'Grav\\Common\\Plugin' not found in wp-content/plugins/registration-wall/vendor/select2/select2/docs/plugins/breadcrumbs/breadcrumbs.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== registration-wall ===
)
registration-wall/registration-wall.php Passed 13 tests
The principal PHP file in "Registration Wall" v. 1.0.4 is loaded by WordPress automatically on each request
63 characters long description:
Easily restrict content to those that are registered/logged in.
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
Success! There were no dangerous files found in this plugin68,490 lines of code in 615 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 233 | 12,100 | 6,557 | 45,147 |
CSS | 87 | 1,364 | 621 | 8,048 |
Sass | 132 | 1,011 | 534 | 4,639 |
Markdown | 61 | 1,542 | 0 | 4,271 |
SVG | 4 | 0 | 1 | 2,697 |
PHP | 31 | 458 | 640 | 1,784 |
YAML | 28 | 55 | 0 | 807 |
Twig | 24 | 56 | 0 | 557 |
HTML | 7 | 65 | 0 | 344 |
JSON | 7 | 0 | 0 | 194 |
Bourne Shell | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 13.15 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 107 | |
▷ Static methods | 26 | 24.30% |
▷ Public methods | 85 | 79.44% |
▷ Protected methods | 8 | 7.48% |
▷ Private methods | 14 | 13.08% |
Functions | 6 | |
▷ Named functions | 4 | 66.67% |
▷ Anonymous functions | 2 | 33.33% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
74 PNG files occupy 1.01MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/select2/select2/docs/themes/site/images/android-chrome-48x48.png | 1.08KB | 0.99KB | ▼ 9.02% |
vendor/select2/select2/docs/pages/images/flags/id.png | 7.15KB | 3.27KB | ▼ 54.24% |
vendor/select2/select2/docs/themes/site/images/apple-touch-icon-60x60.png | 1.91KB | 1.80KB | ▼ 5.48% |
vendor/select2/select2/docs/pages/images/flags/tn.png | 3.91KB | 2.17KB | ▼ 44.39% |
vendor/select2/select2/docs/pages/images/flags/in.png | 6.82KB | 3.17KB | ▼ 53.59% |