Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/place-login/includes/widget.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; plogin_Widget has a deprecated constructor
Server metrics [RAM: ▼1.74MB] [CPU: ▼223.48ms] Passed 4 tests
A check of server-side resources used by Place Login
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.90 ▼0.94 | 8.07 ▼20.42 |
Dashboard /wp-admin | 1.92 ▼1.15 | 6.03 ▼34.66 |
Posts /wp-admin/edit.php | 1.92 ▼1.19 | 4.96 ▼31.80 |
Add New Post /wp-admin/post-new.php | 1.92 ▼3.52 | 4.27 ▼804.62 |
Media Library /wp-admin/upload.php | 1.92 ▼1.08 | 4.31 ▼22.83 |
Place Login /wp-admin/options-general.php?page=pl | 1.92 | 4.22 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
plogin_register |
widget_plogin_widget |
plogin_lostpwd |
plogin_after_login |
plogin_links |
plogin_after_logout |
plogin_parent_page |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Place Login
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,880 ▲229 | 17.28 ▲1.28 | 10.70 ▲4.07 | 78.31 ▼2.20 |
Dashboard /wp-admin | 2,939 ▲43 | 6.75 ▲0.55 | 117.13 ▼12.63 | 168.59 ▼7.93 |
Posts /wp-admin/edit.php | 2,715 ▼22 | 3.12 ▼0.25 | 69.72 ▲4.54 | 138.37 ▼3.26 |
Add New Post /wp-admin/post-new.php | 2,072 ▼1,735 | 21.58 ▲2.75 | 389.16 ▼56.98 | 157.02 ▼6.70 |
Media Library /wp-admin/upload.php | 1,754 ▲2 | 5.91 ▲0.42 | 156.66 ▲11.65 | 192.52 ▲4.05 |
Place Login /wp-admin/options-general.php?page=pl | 1,257 | 3.02 | 55.77 | 144.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/place-login/includes/widget.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; plogin_Widget has a deprecated constructor
- The uninstall procedure has failed, leaving 1 option in the database
- widget_plogin_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=pl
- > Deprecated in wp-content/plugins/place-login/includes/widget.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; plogin_Widget has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=pl
- > Warning in wp-content/plugins/place-login/place-login.php+512
Use of undefined constant flush_rewrite_rules - assumed 'flush_rewrite_rules' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/options-general.php?page=pl
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method plogin_Widget::register_widget() should not be called statically
- > GET request to /wp-admin/options-general.php?page=pl
- > User deprecated in wp-includes/functions.php+5211
force_ssl_login is deprecated since version 4.4.0! Use force_ssl_admin() instead.
- > GET request to /wp-admin/options-general.php?page=pl
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in plogin_Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/options-general.php?page=pl
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=pl
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/place-login/templates/plogin_profile.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/place-login/templates/plogin_lostpwd.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/place-login/templates/plogin_register.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
7 plugin tags: sidebar, form, login, button login, place login...
place-login/place-login.php 92% from 13 tests
The entry point to "Place Login" version 1.1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
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
Everything looks great! No dangerous files found in this plugin1,918 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 180 | 127 | 776 |
PO File | 2 | 158 | 166 | 509 |
CSS | 2 | 36 | 159 | 501 |
JavaScript | 4 | 10 | 7 | 132 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 25.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 2.97 |
▷ 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 | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 89.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 10.81% |
Functions | 14 | |
▷ Named functions | 14 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/arrow-up-gray.png | 0.21KB | 0.14KB | ▼ 31.28% |
images/arrow-down-gray.png | 0.21KB | 0.14KB | ▼ 30.66% |