84% om-change-login-design

Code Review | Om Change Login Design

WordPress plugin Om Change Login Designscored84%from 54 tests.

About plugin

  • Plugin page: om-change-login-d...
  • Plugin version: 01.00.05
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.0-5.9.2
  • WordPress version: 6.3.1
  • First release: May 8, 2022
  • Latest release: May 8, 2022
  • Number of updates: 2
  • Update frequency: every 19.5 days
  • Top authors: siddharthsingh91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /166 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.39ms] Passed 4 tests

A check of server-side resources used by Om Change Login Design
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.80 ▼5.70
Dashboard /wp-admin3.35 ▲0.0445.60 ▼1.49
Posts /wp-admin/edit.php3.40 ▲0.0447.04 ▲1.02
Add New Post /wp-admin/post-new.php5.93 ▲0.0490.72 ▲0.63
Media Library /wp-admin/upload.php3.27 ▲0.0437.66 ▲1.32

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Om Change Login Design
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲4514.36 ▼0.011.65 ▼0.3142.65 ▼1.64
Dashboard /wp-admin2,218 ▲335.88 ▲0.07100.01 ▼9.0939.49 ▼5.35
Posts /wp-admin/edit.php2,104 ▲151.99 ▼0.0240.30 ▲4.6135.94 ▼1.28
Add New Post /wp-admin/post-new.php1,552 ▲2318.39 ▲0.24630.54 ▼34.1565.74 ▲13.23
Media Library /wp-admin/upload.php1,400 ▲154.18 ▲0.0294.63 ▼6.6843.01 ▲0.85

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
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
The following issues need your attention
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/om-change-login-design/admin/function/html_container.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/om-change-login-design/including_js_css.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/om-change-login-design/admin/function/include_js_css.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/om-change-login-design/admin/function/admin_function.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/om-change-login-design/admin/function/admin_main_menu.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/om-change-login-design/admin/function/form_submit.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/om-change-login-design/inc/Om_change_login_design_class.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: You should set the name of your plugin on the first line ( === Om Change Login Design=== )
The official readme.txt is a good inspiration

om-change-login-design/index.php 92% from 13 tests

The entry point to "Om Change Login Design" version 01.00.05 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("om-change-login-design.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected763 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
SVG100288
PHP83313204
CSS3842183
JavaScript4223388

PHP code Passed 2 tests

Analyzing 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 complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/info-bg.png1.69KB0.24KB▼ 85.65%
images/logo-new.png3.40KB0.12KB▼ 96.59%