Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/d-login/includes/admin/widgets/DWidgetUserForm.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; DWidgetUserForm has a deprecated constructor
Server metrics [RAM: ▼1.89MB] [CPU: ▼55.21ms] Passed 4 tests
Server-side resources used by D-login
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.36 | 5.01 ▼37.69 |
Dashboard /wp-admin | 2.12 ▼1.18 | 5.89 ▼47.83 |
Posts /wp-admin/edit.php | 2.12 ▼1.23 | 6.72 ▼42.81 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 9.28 ▼92.50 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 6.41 ▼27.97 |
Server storage [IO: ▲4.67MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_dwidgetuserdisplay |
widget_dwidgetuserform |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for D-login
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 14.48 ▲0.06 | 1.98 ▼0.02 | 42.98 ▼2.16 |
Dashboard /wp-admin | 2,206 ▲21 | 4.86 ▼1.06 | 109.50 ▲10.49 | 40.66 ▼5.93 |
Posts /wp-admin/edit.php | 2,089 ▲14 | 2.02 ▲0.05 | 39.62 ▼4.16 | 34.20 ▼1.33 |
Add New Post /wp-admin/post-new.php | 1,542 ▼0 | 18.14 ▲0.17 | 601.62 ▼6.02 | 62.75 ▲12.77 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.15 ▼0.01 | 97.29 ▼14.23 | 43.43 ▲0.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
- > Deprecated in wp-content/plugins/d-login/includes/admin/widgets/DWidgetUserForm.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; DWidgetUserForm has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 8 options
- can_compress_scripts
- widget_recent-comments
- widget_dwidgetuserdisplay
- theysaidso_admin_options
- widget_dwidgetuserform
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 output text when accessed directly:
- > /wp-content/plugins/d-login/lib/cool-php-captcha/captcha.php
- > /wp-content/plugins/d-login/lib/cool-php-captcha/example-form.php
- > /wp-content/plugins/d-login/lib/cool-php-captcha/resources/tools/dictionary-import/importwords.php
- 12× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/d-login/includes/site/SiteDRegUser.php:22
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/d-login/includes/site/SiteDRegUser.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/d-login/lib/cool-php-captcha/resources/tools/dictionary-import/importwords.php on line 23
- > PHP Notice
Undefined variable: argv in wp-content/plugins/d-login/lib/cool-php-captcha/resources/tools/dictionary-import/importwords.php on line 23
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/d-login/includes/admin/widgets/DWidgetUserForm.php:12
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/d-login/includes/site/SiteDRegUser.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/d-login/includes/admin/widgets/DWidgetUserForm.php:12
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/d-login/includes/site/SiteDLoginUser.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/d-login/includes/admin/widgets/DWidgetUserDisplay.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/d-login/includes/site/SiteDLoginUser.php:23
- > 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 issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid URI ("")
d-login/d-login.php Passed 13 tests
"D-login" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
52 characters long description:
Plugin registration and authorization for Wordpress.
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
Success! There were no dangerous files found in this plugin951 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 386 | 93,935 | 821 |
PO File | 1 | 56 | 158 | 130 |
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.22 |
Average class complexity | 12.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 55.00% |
▷ Protected methods | 9 | 45.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected