Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼1.80ms] Passed 4 tests
Server-side resources used by PSW - Login and registration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 41.30 ▼3.06 |
Dashboard /wp-admin | 3.47 ▲0.16 | 47.30 ▼2.41 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 48.08 ▼4.72 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 95.20 ▲9.37 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 35.04 ▲2.99 |
PSW - Front-end Login and registration /wp-admin/options-general.php?page=psw-general-features | 3.36 | 31.39 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
PSW - Login and registration: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.24 ▼0.78 | 1.88 ▼0.67 | 42.05 ▼6.18 |
Dashboard /wp-admin | 2,217 ▲29 | 4.85 ▼0.22 | 105.02 ▼15.97 | 43.51 ▼4.39 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.03 ▼0.04 | 38.72 ▼6.38 | 30.27 ▼10.25 |
Add New Post /wp-admin/post-new.php | 1,521 ▼7 | 23.36 ▲5.06 | 583.94 ▼61.10 | 60.98 ▲7.69 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.22 ▲0.06 | 97.15 ▼11.78 | 42.35 ▼2.01 |
PSW - Front-end Login and registration /wp-admin/options-general.php?page=psw-general-features | 879 | 2.06 | 22.27 | 42.37 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=psw-general-features
- > Notice in wp-content/plugins/psw-login-and-registration/admin/plugin_setting.php+144
Trying to access array offset on value of type bool
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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/psw-login-and-registration/public/partials/prositegeneralfeatures-public-display.php
- > /wp-content/plugins/psw-login-and-registration/admin/partials/prositegeneralfeatures-admin-display.php
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/psw-login-and-registration/public/templates/page-template.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/psw-login-and-registration/public/partials/part/register.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_queried_object() in wp-content/plugins/psw-login-and-registration/public/partials/part/login.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/psw-login-and-registration/public/partials/registration_form.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/psw-login-and-registration/public/partials/part/forget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/psw-login-and-registration/admin/plugin_setting.php:166
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 73% from 29 tests
readme.txt 69% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Contributors: The plugin tags were not defined
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== psw-login-and-registration ===
) - Contributors: The plugin contributors field is not present
- Screenshots: These screenshots need descriptions #5, #6 in psw-login-and-registration/assets to your readme.txt
- Tags: The plugin tags were not defined
psw-login-and-registration/prositegeneralfeatures.php 77% from 13 tests
Analyzing the main PHP file in "PSW - Login and registration" version 1.0.4
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("psw-login-and-registration.php" instead of "prositegeneralfeatures.php")
- Description: Keep the plugin description shorter than 140 characters (currently 198 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected1,546 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 189 | 574 | 741 |
PO File | 2 | 164 | 181 | 401 |
CSS | 2 | 13 | 12 | 242 |
JavaScript | 2 | 16 | 28 | 162 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 2 | 4.35% |
▷ Public methods | 41 | 89.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.87% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin