Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.42ms] Passed 4 tests
This is a short check of server-side resources used by TwitchPress Login Extension
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 49.36 ▲8.18 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.77 ▼3.02 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.53 ▲0.75 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 85.67 ▼13.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.35 ▼1.73 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by TwitchPress Login Extension
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.35 ▼0.00 | 2.01 ▲0.31 | 44.09 ▲3.55 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▼0.06 | 90.87 ▲3.99 | 43.95 ▼1.33 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.98 ▼0.00 | 35.83 ▲0.76 | 32.94 ▼6.47 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.76 ▲0.61 | 652.40 ▼5.56 | 52.68 ▼2.34 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▼0.01 | 93.17 ▼11.54 | 43.58 ▼2.70 |
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: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/twitchpress-login-extension/twitchpress-login-extension.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/twitchpress-login-extension/class.twitchpress-login-helix.php:181
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/twitchpress-login-extension/class.twitchpress-login-kraken.php:181
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: twitch login, twitch, twitchtv, twitch register, twitchpress...
twitchpress-login-extension/twitchpress-login-extension.php 85% from 13 tests
The entry point to "TwitchPress Login Extension" version 1.9.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Domain Path: The domain path folder does not exist ("/languages")
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
Good job! No executable or dangerous file extensions detected1,816 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 592 | 842 | 1,758 |
CSS | 1 | 7 | 2 | 56 |
JavaScript | 1 | 2 | 1 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 33.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 109.00 |
Average method complexity | 3.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 93 | |
▷ Static methods | 18 | 19.35% |
▷ Public methods | 75 | 80.65% |
▷ Protected methods | 6 | 6.45% |
▷ Private methods | 12 | 12.90% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/connect.png | 2.35KB | 1.96KB | ▼ 16.48% |