84% gabriel-auto-login

Code Review | Gabriel Auto Login

WordPress plugin Gabriel Auto Login scored84%from 54 tests.

About plugin

  • Plugin page: gabriel-auto-login
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.6
  • WordPress version: 6.3.1
  • First release: Apr 14, 2020
  • Latest release: Nov 30, 2020
  • Number of updates: 11
  • Update frequency: every 21.4 days
  • Top authors: virnetx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /367 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.55ms] Passed 4 tests

A check of server-side resources used by Gabriel Auto Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0135.32 ▼8.48
Dashboard /wp-admin3.32 ▲0.0145.10 ▼6.46
Posts /wp-admin/edit.php3.37 ▲0.0142.82 ▼9.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.67 ▼9.44
Media Library /wp-admin/upload.php3.24 ▲0.0134.87 ▲0.08

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Gabriel Auto Login
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.191.81 ▼0.0736.68 ▼11.86
Dashboard /wp-admin2,209 ▲215.88 ▼0.0099.28 ▼0.1239.07 ▼2.82
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0538.89 ▼1.2535.62 ▲1.79
Add New Post /wp-admin/post-new.php1,542 ▲2818.10 ▲0.56656.23 ▼19.8158.10 ▼0.28
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0392.46 ▼6.8543.07 ▲0.42

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gabriel-auto-login/gabriel_auto_login.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 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
There were no plugin tags found

gabriel-auto-login/gabriel_auto_login.php 85% from 13 tests

The main file in "Gabriel Auto Login" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gabriel-auto-login.php" instead of "gabriel_auto_login.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 454 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected60 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1223760

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin