Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▼6.66ms] Passed 4 tests
A check of server-side resources used by Login Redirect, Logout Redirect, Hide Admin Bar, Disable Comments and more PowerUp WordPress Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 36.93 ▼4.53 |
Dashboard /wp-admin | 3.57 ▲0.27 | 48.04 ▼4.26 |
Posts /wp-admin/edit.php | 3.63 ▲0.26 | 48.99 ▲0.32 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 83.52 ▼18.18 |
Media Library /wp-admin/upload.php | 3.44 ▲0.20 | 47.84 ▲12.96 |
All Comments /wp-admin/edit-comments.php | 3.32 | 27.01 |
Server storage [IO: ▲1.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
gspu_plugin_version |
can_compress_scripts |
db_upgraded |
gspu_permalinks_flushed |
Browser metrics Passed 4 tests
Login Redirect, Logout Redirect, Hide Admin Bar, Disable Comments and more PowerUp WordPress Plugin: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,614 ▼147 | 14.55 ▼0.01 | 1.31 ▼0.38 | 43.11 ▼2.21 |
Dashboard /wp-admin | 2,197 ▲23 | 5.60 ▼0.06 | 85.02 ▼1.99 | 85.20 ▲41.85 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 1.95 ▼0.03 | 34.72 ▼5.36 | 32.30 ▼5.71 |
Add New Post /wp-admin/post-new.php | 1,680 ▲152 | 21.80 ▼1.21 | 721.25 ▲32.99 | 54.85 ▼3.51 |
Media Library /wp-admin/upload.php | 1,399 ▼1 | 4.22 ▲0.02 | 95.56 ▼13.17 | 91.37 ▲44.70 |
All Comments /wp-admin/edit-comments.php | 28 | 0.42 | 0.08 | 3.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- gspu_plugin_version
- widget_theysaidso_widget
- db_upgraded
- gspu_permalinks_flushed
- theysaidso_admin_options
Smoke tests 25% 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)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/powerup/includes/template.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(GSPU_PLUGIN_DIRincludes/helpers.php): failed to open stream: No such file or directory in wp-content/plugins/powerup/includes/plugin.php on line 25
- > PHP Warning
Use of undefined constant GSPU_PLUGIN_URI - assumed 'GSPU_PLUGIN_URI' (this will throw an Error in a future version of PHP) in wp-content/plugins/powerup/includes/template.php on line 10
- > PHP Warning
Use of undefined constant GSPU_PLUGIN_DIR - assumed 'GSPU_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/powerup/includes/plugin.php on line 25
- > PHP Fatal error
require_once(): Failed opening required 'GSPU_PLUGIN_DIRincludes/helpers.php' (include_path='.:/usr/share/php') in wp-content/plugins/powerup/includes/plugin.php on line 25
- > PHP Fatal error
Uncaught Error: Class 'PowerUp\\Base\\Module' not found in wp-content/plugins/powerup/includes/modules/restrict-wp-admin.php:7
- > PHP Fatal error
Uncaught Error: Class 'PowerUp\\Base\\Module' not found in wp-content/plugins/powerup/includes/modules/disable-comments.php:6
- > PHP Fatal error
Uncaught Error: Class 'PowerUp\\Base\\Module' not found in wp-content/plugins/powerup/includes/modules/hide-admin-bar.php:7
- > PHP Fatal error
Uncaught Error: Class 'PowerUp\\Base\\Module' not found in wp-content/plugins/powerup/includes/modules/redirection-rules.php:7
- > PHP Warning
Use of undefined constant GSPU_VERSION - assumed 'GSPU_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/powerup/includes/template.php on line 11
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/edit-comments.php
- > Network (severe)
wp-admin/edit-comments.php - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: registration redirect, disable comments, hide admin bar, login redirect, logout redirect
powerup/powerup.php 92% from 13 tests
Analyzing the main PHP file in "Login Redirect, Logout Redirect, Hide Admin Bar, Disable Comments and more PowerUp WordPress Plugin" version 1.0.2
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
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
Good job! No executable or dangerous file extensions detected981 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 282 | 39 | 838 |
JavaScript | 1 | 0 | 206 | 98 |
SVG | 2 | 0 | 0 | 42 |
CSS | 4 | 1 | 5 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 13.44 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 1 | 11.11% |
▷ Concrete classes | 8 | 88.89% |
▷ Final classes | 4 | 50.00% |
Methods | 90 | |
▷ Static methods | 20 | 22.22% |
▷ Public methods | 90 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin