89% simple-gmail-login

Code Review | Simple Gmail Login

WordPress plugin Simple Gmail Login scored 89% from 54 tests.

About plugin

  • Plugin page: simple-gmail-login
  • Plugin version: 1.2.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.5
  • WordPress version: 5.8.1
  • First release: Nov 22, 2012
  • Latest release: Dec 16, 2012
  • Number of updates: 31
  • Update frequency: every 0.8 days
  • Top authors: victor_jonsson (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 3,510 total downloads


Plugin footprint Passed 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 gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼140.35ms] Passed 4 tests

A check of server-side resources used by Simple Gmail Login
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1636.43 ▲17.42
Dashboard /wp-admin3.12 ▲0.0652.27 ▲3.75
Posts /wp-admin/edit.php3.20 ▲0.0944.68 ▼0.94
Add New Post /wp-admin/post-new.php5.47 ▲0.0395.14 ▼561.47
Media Library /wp-admin/upload.php3.06 ▲0.0531.51 ▼2.72
Simple Gmail Login /wp-admin/options-general.php?page=simple-gmail-login/simple-gmail-login.php3.0331.97

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Simple Gmail Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,789 ▲19316.02 ▲0.4710.34 ▲0.2849.29 ▼1.27
Dashboard /wp-admin3,056 ▲1226.08 ▲0.13143.94 ▼0.53118.70 ▼1.84
Posts /wp-admin/edit.php2,743 ▲72.72 ▲0.0270.43 ▲5.2594.99 ▲0.33
Add New Post /wp-admin/post-new.php1,677 ▼19918.97 ▼0.17376.88 ▼20.65116.62 ▼0.17
Media Library /wp-admin/upload.php1,817 ▲75.05 ▲0.00148.24 ▲2.77119.72 ▼3.00
Simple Gmail Login /wp-admin/options-general.php?page=simple-gmail-login/simple-gmail-login.php1,1322.1059.7777.26

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-gmail-login/settings-page.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Notice
      Undefined variable: plugin_writeable in wp-content/plugins/simple-gmail-login/settings-page.php on line 24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/simple-gmail-login/simple-gmail-login.php:49

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: login, gmail, wp-admin

simple-gmail-login/simple-gmail-login.php Passed 13 tests

This is the main PHP file of "Simple Gmail Login" version 1.2.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
71 characters long description:
With this plugin you can login to wp-admin using your GMail credentials

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin362 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity19.00
▷ Minimum class complexity1.00
▷ Maximum class complexity37.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1372.22%
▷ Protected methods00.00%
▷ Private methods527.78%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin