Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/oauth-for-gap-messenger/oauth-for-gap-messenger.php+54
Undefined index: client_secret
Server metrics [RAM: ▼1.89MB] [CPU: ▼190.71ms] Passed 4 tests
This is a short check of server-side resources used by Oauth for Gap Messenger
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼1.09 | 5.96 ▼25.25 |
Dashboard /wp-admin | 1.76 ▼1.29 | 5.78 ▼36.77 |
Posts /wp-admin/edit.php | 1.76 ▼1.35 | 6.25 ▼38.36 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 5.82 ▼658.78 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 5.42 ▼28.93 |
Gap OAuth Setting /wp-admin/options-general.php?page=settings_api_test | 1.76 | 6.11 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 1 new option
New WordPress options |
---|
oauth_gap_configs |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Oauth for Gap Messenger
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,930 ▲334 | 17.63 ▲2.08 | 7.25 ▼2.91 | 51.81 ▼2.34 |
Dashboard /wp-admin | 3,194 ▲257 | 8.18 ▲2.22 | 167.32 ▲4.40 | 123.35 ▲10.14 |
Posts /wp-admin/edit.php | 2,992 ▲253 | 4.35 ▲1.65 | 86.25 ▲17.82 | 92.73 ▲6.49 |
Add New Post /wp-admin/post-new.php | 1,521 ▲21 | 18.42 ▼0.30 | 347.60 ▼23.76 | 120.38 ▲2.57 |
Media Library /wp-admin/upload.php | 1,838 ▲31 | 4.99 ▼0.04 | 119.67 ▼34.85 | 126.44 ▲5.88 |
Gap OAuth Setting /wp-admin/options-general.php?page=settings_api_test | 1,372 | 4.10 | 89.88 | 82.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/oauth-for-gap-messenger/oauth-for-gap-messenger.php+54
Undefined index: client_secret
- The uninstall procedure has failed, leaving 1 option in the database
- oauth_gap_configs
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=settings_api_test
- > Notice in wp-content/plugins/oauth-for-gap-messenger/oauth-for-gap-messenger.php+54
Undefined index: client_secret
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/oauth-for-gap-messenger/inc/oauth-gap-messenger-admin.php:126
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/oauth-for-gap-messenger/oauth-for-gap-messenger.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: messenger, oauth, gap
oauth-for-gap-messenger/oauth-for-gap-messenger.php 92% from 13 tests
"Oauth for Gap Messenger" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
No dangerous file extensions were detected1,062 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 205 | 414 | 1,015 |
PO File | 1 | 14 | 17 | 47 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 31.80 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 79 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 72 | 91.14% |
▷ Protected methods | 1 | 1.27% |
▷ Private methods | 6 | 7.59% |
Functions | 2 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 2 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin