Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.11ms] Passed 4 tests
An overview of server-side resources used by Wonkasoft Logout
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 40.12 ▼3.36 |
Dashboard /wp-admin | 3.40 ▲0.09 | 48.69 ▼6.21 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 52.66 ▲5.53 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 91.90 ▼7.31 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.00 ▲4.45 |
Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Wonkasoft Logout
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,948 ▲177 | 13.61 ▼0.74 | 5.56 ▲3.49 | 44.58 ▼3.78 |
Dashboard /wp-admin | 2,234 ▲46 | 5.85 ▼0.05 | 105.34 ▼12.37 | 72.59 ▲25.94 |
Posts /wp-admin/edit.php | 2,132 ▲46 | 2.02 ▼0.00 | 36.74 ▼1.62 | 33.20 ▼5.95 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 23.10 ▲5.59 | 739.90 ▲75.64 | 59.58 ▲3.07 |
Media Library /wp-admin/upload.php | 1,425 ▲34 | 4.13 ▼0.00 | 108.24 ▲6.02 | 88.26 ▲45.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
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 no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wonkasoft-logout/public/partials/wonkasoft-logout-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wonkasoft-logout/admin/partials/wonkasoft-logout-add-action-links.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wonkasoft-logout/admin/partials/wonkasoft-logout-admin-display.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires php: Version format is invalid
wonkasoft-logout/wonkasoft-logout.php Passed 13 tests
The main PHP script in "Wonkasoft Logout" version 1.1.2 is automatically included on every request by WordPress
125 characters long description:
This Plugin will allow you to direct where the user will go after either logging in or logging out of an account on the site.
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
Success! There were no dangerous files found in this plugin396 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 189 | 635 | 369 |
CSS | 2 | 4 | 8 | 18 |
JavaScript | 2 | 4 | 54 | 6 |
SVG | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/Logo-8.png | 13.70KB | 12.33KB | ▼ 9.98% |
admin/img/Logo_rec-8.png | 13.24KB | 12.12KB | ▼ 8.46% |