Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.15ms] Passed 4 tests
Analyzing server-side resources used by WP-OAuth
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.69 ▲7.01 |
Dashboard /wp-admin | 3.39 ▲0.05 | 46.57 ▼10.39 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 53.48 ▲6.73 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 77.71 ▼11.61 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 35.48 ▼1.32 |
WP-OAuth /wp-admin/options-general.php?page=WP-OAuth | 3.71 | 360.27 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 57 new options
New WordPress options |
---|
wpoa_logout_redirect_url |
wpoa_paypal_api_enabled |
wpoa_windowslive_api_id |
wpoa_login_form_show_comments_section |
wpoa_restore_default_settings |
wpoa_paypal_api_id |
wpoa_linkedin_api_id |
wpoa_new_user_role |
wpoa_google_api_secret |
wpoa_facebook_api_id |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-OAuth
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,046 ▲300 | 14.92 ▲0.64 | 5.85 ▲4.29 | 39.77 ▼0.59 |
Dashboard /wp-admin | 2,344 ▲167 | 6.17 ▲0.43 | 104.76 ▲16.92 | 36.87 ▼5.21 |
Posts /wp-admin/edit.php | 2,275 ▲175 | 3.32 ▲1.33 | 51.71 ▲9.71 | 32.45 ▼5.21 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 21.84 ▼1.31 | 630.35 ▼43.13 | 37.71 ▼16.97 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.08 ▼0.07 | 88.84 ▼23.43 | 45.11 ▼0.97 |
WP-OAuth /wp-admin/options-general.php?page=WP-OAuth | 3,304 | 3.45 | 43.03 | 101.19 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 57 options
- wpoa_logo_links_to_site
- wpoa_logout_inactive_users
- wpoa_facebook_api_id
- wpoa_linkedin_api_secret
- wpoa_paypal_api_sandbox_mode
- wpoa_facebook_api_secret
- widget_recent-posts
- wpoa_instagram_api_id
- wpoa_battlenet_api_secret
- wpoa_battlenet_api_enabled
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=WP-OAuth
- > Notice in wp-content/plugins/wp-oauth/wp-oauth-settings.php+85
Undefined variable: maxitems
SRP 50% 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
The following issues need your attention
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-oauth/wp-oauth.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-oauth/login-github.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-oauth/login-paypal.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-oauth/login-linkedin.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-oauth/login-reddit.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-oauth/login-instagram.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-oauth/register.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/wp-oauth/wp-oauth-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-oauth/login-battlenet.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-oauth/login-facebook.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (The Settings page is where you'll configure the plugin.), #2 (The Your Profile page is where users will manage their linked accounts.), #3 (The Login page can easily be customized.)
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-oauth/wp-oauth.php 92% from 13 tests
This is the main PHP file of "WP-OAuth" version 0.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 247 characters long)
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
Success! There were no dangerous files found in this plugin3,338 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 191 | 491 | 2,870 |
JavaScript | 1 | 48 | 139 | 315 |
CSS | 1 | 20 | 14 | 153 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 69.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 1 | 2.38% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 30 | |
▷ Named functions | 30 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 82 | |
▷ Global constants | 81 | 98.78% |
▷ Class constants | 1 | 1.22% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
11 PNG files occupy 0.35MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
icons/hex/linkedin.png | 1.14KB | 0.73KB | ▼ 35.84% |
screenshot-1.png | 315.02KB | 103.12KB | ▼ 67.27% |
screenshot-2.png | 19.07KB | 18.14KB | ▼ 4.88% |
icons/hex/google.png | 1.93KB | 1.13KB | ▼ 41.27% |
icons/hex/reddit.png | 2.48KB | 1.30KB | ▼ 47.44% |