99% oxy-relogin-window

Code Review | OXY Re-Login Window

WordPress plugin OXY Re-Login Window scored 99% from 54 tests.

About plugin

  • Plugin page: oxy-relogin-window
  • Plugin version: 1.1
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 5.8.1
  • First release: Mar 17, 2021
  • Latest release: Mar 19, 2021
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: laborin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 433 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼147.01ms] Passed 4 tests

An overview of server-side resources used by OXY Re-Login Window
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0235.60 ▲1.05
Dashboard /wp-admin3.08 ▲0.0246.65 ▼7.00
Posts /wp-admin/edit.php3.14 ▲0.0251.62 ▲1.00
Add New Post /wp-admin/post-new.php5.44 ▲0.0084.21 ▼583.09
Media Library /wp-admin/upload.php3.03 ▲0.0234.26 ▲3.22

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by OXY Re-Login Window
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,692 ▲9615.85 ▲0.298.87 ▼0.0846.40 ▼3.70
Dashboard /wp-admin2,980 ▲505.87 ▼0.12145.49 ▼23.99115.77 ▼5.82
Posts /wp-admin/edit.php2,754 ▲152.69 ▼0.0072.61 ▲0.4490.54 ▼7.95
Add New Post /wp-admin/post-new.php1,691 ▲8718.45 ▼0.34386.47 ▼6.03116.92 ▼5.79
Media Library /wp-admin/upload.php1,820 ▲135.02 ▲0.02166.96 ▲6.65124.19 ▼10.93

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 Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
No plugin tags provided

oxy-relogin-window/relogin-for-oxygen.php 85% from 13 tests

"OXY Re-Login Window" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
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 ("oxy-relogin-window.php" instead of "relogin-for-oxygen.php")
  • Description: The description should be shorter than 140 characters (currently 187 characters long)

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
There were no executable files found in this plugin119 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP111874
JavaScript10029
CSS11016

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants0
▷ 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