84% ozh-simpler-login-url

Code Review | Ozh' Simpler Login URL

WordPress plugin Ozh' Simpler Login URL scored84%from 54 tests.

About plugin

  • Plugin page: ozh-simpler-login...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-9.9
  • WordPress version: 6.3.1
  • First release: Jan 14, 2011
  • Latest release: Sep 13, 2014
  • Number of updates: 4
  • Update frequency: every 334.5 days
  • Top authors: ozh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /10,863 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

A check of server-side resources used by Ozh' Simpler Login URL
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.73 ▲3.65
Dashboard /wp-admin3.31 ▲0.0145.27 ▼6.12
Posts /wp-admin/edit.php3.36 ▲0.0152.91 ▲5.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0197.12 ▲0.90
Media Library /wp-admin/upload.php3.23 ▲0.0135.13 ▲1.46

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
These are issues you should consider
  • The plugin illegally modified 1 file (0.55KB) outside of "wp-content/plugins/ozh-simpler-login-url/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Ozh' Simpler Login URL
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.032.22 ▲0.7446.10 ▲8.67
Dashboard /wp-admin2,186 ▲65.62 ▼0.0596.05 ▲5.2341.38 ▼1.14
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0539.27 ▲5.4334.35 ▼1.87
Add New Post /wp-admin/post-new.php1,526 ▼523.71 ▲0.93679.97 ▲100.0558.95 ▼0.16
Media Library /wp-admin/upload.php1,403 ▲34.15 ▲0.0295.76 ▲2.3343.00 ▲3.78

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • 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 everything seems fine, this is not 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
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ozh-simpler-login-url/plugin.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: rewrite api, rewrite, login, htaccess, ozh

ozh-simpler-login-url/plugin.php 92% from 13 tests

Analyzing the main PHP file in "Ozh' Simpler Login URL" version 0.1
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ozh-simpler-login-url.php" instead of "plugin.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
Everything looks great! No dangerous files found in this plugin14 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP131114

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.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected