84% oauth-client-muloqot

Code Review | OauthClient

WordPress plugin OauthClient scored84%from 54 tests.

About plugin

  • Plugin page: oauth-client-muloqot
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-1.5
  • WordPress version: 6.3.1
  • First release: Nov 21, 2013
  • Latest release: Feb 4, 2014
  • Number of updates: 25
  • Update frequency: every 3.1 days
  • Top authors: shukhrat.ermatov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /988 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1442.15 ▲1.36
Dashboard /wp-admin3.37 ▲0.0341.96 ▼21.03
Posts /wp-admin/edit.php3.55 ▲0.2048.92 ▲0.40
Add New Post /wp-admin/post-new.php6.02 ▲0.1483.76 ▼6.63
Media Library /wp-admin/upload.php3.36 ▲0.1334.26 ▲0.27
OAuth2 /wp-admin/options-general.php?page=oauth23.3338.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,788 ▲4213.26 ▼1.044.68 ▲2.9542.27 ▼0.74
Dashboard /wp-admin2,202 ▲145.77 ▲0.7697.55 ▼10.8638.66 ▼2.96
Posts /wp-admin/edit.php2,090 ▼22.00 ▼0.0139.53 ▼0.8835.46 ▼2.65
Add New Post /wp-admin/post-new.php1,538 ▲823.21 ▲5.02664.01 ▲66.6557.67 ▼0.96
Media Library /wp-admin/upload.php1,389 ▲14.25 ▲0.0994.67 ▼2.6348.74 ▲5.02
OAuth2 /wp-admin/options-general.php?page=oauth27842.0524.4025.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

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 === )
You can take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP5221305763
CSS110102
PO File171333

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 code0.78
Average class complexity50.67
▷ Minimum class complexity18.00
▷ Maximum class complexity104.00
Average method complexity5.03
▷ Minimum method complexity1.00
▷ Maximum method complexity58.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods2978.38%
▷ Protected methods616.22%
▷ Private methods25.41%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.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
FileSize - originalSize - compressedSavings
img/green_button_lb.png3.04KB0.58KB▼ 81.09%
img/snowbtn_right.png3.12KB0.70KB▼ 77.46%
img/green_button_r.png2.38KB1.60KB▼ 32.83%
img/snowbtn_center.png3.08KB0.68KB▼ 78.02%
img/snowbtn_left.png3.08KB0.56KB▼ 81.90%