84% login-with-donbaler-oauth

Code Review | Login with Donbaler OAuth

WordPress plugin Login with Donbaler OAuth scored84%from 54 tests.

About plugin

  • Plugin page: login-with-donbal...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: May 27, 2015
  • Latest release: Jun 2, 2015
  • Number of updates: 37
  • Update frequency: every 0.2 days
  • Top authors: nipoto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,741 total downloads

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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.55ms] Passed 4 tests

A check of server-side resources used by Login with Donbaler OAuth
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.35 ▼1.44
Dashboard /wp-admin3.34 ▼0.0046.74 ▼17.45
Posts /wp-admin/edit.php3.39 ▲0.0448.83 ▼0.01
Add New Post /wp-admin/post-new.php5.92 ▲0.04100.23 ▲4.71
Media Library /wp-admin/upload.php3.26 ▲0.0438.84 ▲5.27

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
donbaler_oauth
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Login with Donbaler OAuth: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.47 ▲0.091.73 ▼0.0138.79 ▼4.51
Dashboard /wp-admin2,219 ▲315.80 ▼0.0696.86 ▼8.2244.04 ▲0.53
Posts /wp-admin/edit.php2,102 ▲162.03 ▲0.0239.61 ▲4.7335.03 ▲0.20
Add New Post /wp-admin/post-new.php1,546 ▲422.95 ▲4.63628.00 ▲35.2255.27 ▲2.84
Media Library /wp-admin/upload.php1,404 ▲194.23 ▲0.0397.10 ▼3.0542.37 ▼0.08

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • donbaler_oauth
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/login-with-donbaler-oauth/index.php:21

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
You can take inspiration from this readme.txt

login-with-donbaler-oauth/index.php 92% from 13 tests

The main PHP file in "Login with Donbaler OAuth" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("login-with-donbaler-oauth.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected250 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11723250

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin