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.11MB] [CPU: ▼6.75ms] Passed 4 tests
This is a short check of server-side resources used by OauthClient
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 42.15 ▲1.36 |
Dashboard /wp-admin | 3.37 ▲0.03 | 41.96 ▼21.03 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 48.92 ▲0.40 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 83.76 ▼6.63 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 34.26 ▲0.27 |
OAuth2 /wp-admin/options-general.php?page=oauth2 | 3.33 | 38.91 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for OauthClient
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,788 ▲42 | 13.26 ▼1.04 | 4.68 ▲2.95 | 42.27 ▼0.74 |
Dashboard /wp-admin | 2,202 ▲14 | 5.77 ▲0.76 | 97.55 ▼10.86 | 38.66 ▼2.96 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 2.00 ▼0.01 | 39.53 ▼0.88 | 35.46 ▼2.65 |
Add New Post /wp-admin/post-new.php | 1,538 ▲8 | 23.21 ▲5.02 | 664.01 ▲66.65 | 57.67 ▼0.96 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.25 ▲0.09 | 94.67 ▼2.63 | 48.74 ▲5.02 |
OAuth2 /wp-admin/options-general.php?page=oauth2 | 784 | 2.05 | 24.40 | 25.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/oauth-client-muloqot/Oauth.php:143
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/oauth-client-muloqot/authenticate.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== oauth-client-muloqot ===
)
oauth-client-muloqot/Oauth.php 92% from 13 tests
The main file in "OauthClient" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("oauth-client-muloqot.php" instead of "Oauth.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin898 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 221 | 305 | 763 |
CSS | 1 | 1 | 0 | 102 |
PO File | 1 | 7 | 13 | 33 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.78 |
Average class complexity | 50.67 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 5.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 29 | 78.38% |
▷ Protected methods | 6 | 16.22% |
▷ Private methods | 2 | 5.41% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/green_button_lb.png | 3.04KB | 0.58KB | ▼ 81.09% |
img/snowbtn_right.png | 3.12KB | 0.70KB | ▼ 77.46% |
img/green_button_r.png | 2.38KB | 1.60KB | ▼ 32.83% |
img/snowbtn_center.png | 3.08KB | 0.68KB | ▼ 78.02% |
img/snowbtn_left.png | 3.08KB | 0.56KB | ▼ 81.90% |