83% professional-login-and-registration-page-style

Code Review | ویرایش حرفه ای صفحه ورود و ثبت نام وردپرس

WordPress plugin ویرایش حرفه ای صفحه ورود و ثبت نام وردپرس scored83%from 54 tests.

About plugin

  • Plugin page: professional-logi...
  • Plugin version: 1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9
  • WordPress version: 6.3.1
  • First release: Jan 28, 2022
  • Latest release: Feb 1, 2022
  • Number of updates: 11
  • Update frequency: every 0.4 days
  • Top authors: sajjaddehghanian83 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /1,209 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by ویرایش حرفه ای صفحه ورود و ثبت نام وردپرس
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.43 ▼5.06
Dashboard /wp-admin3.34 ▲0.0349.35 ▲0.80
Posts /wp-admin/edit.php3.39 ▲0.0350.48 ▲0.81
Add New Post /wp-admin/post-new.php5.92 ▲0.0396.88 ▲6.74
Media Library /wp-admin/upload.php3.26 ▲0.0339.18 ▲4.22

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

ویرایش حرفه ای صفحه ورود و ثبت نام وردپرس: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲5514.49 ▲0.181.77 ▼0.2542.65 ▼0.81
Dashboard /wp-admin2,229 ▲415.88 ▼0.18107.10 ▲2.3042.69 ▼0.10
Posts /wp-admin/edit.php2,109 ▲202.15 ▲0.1539.51 ▼1.7936.85 ▲0.18
Add New Post /wp-admin/post-new.php1,546 ▲1823.20 ▲5.04630.71 ▼6.7449.66 ▼8.49
Media Library /wp-admin/upload.php1,408 ▲174.19 ▼0.0495.25 ▼7.2040.32 ▼3.34

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/professional-login-and-registration-page-style/includes/admin/functions.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/professional-login-and-registration-page-style/includes/user/functions.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/professional-login-and-registration-page-style/template/general.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/professional-login-and-registration-page-style/includes/admin/login-register-menu.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/professional-login-and-registration-page-style/login-register.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
  • Tags: No valid plugin tags found
Please take inspiration from this readme.txt

professional-login-and-registration-page-style/login-register.php 77% from 13 tests

"ویرایش حرفه ای صفحه ورود و ثبت نام وردپرس" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("professional-login-and-registration-page-style.php" instead of "login-register.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "5.2")

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
No dangerous file extensions were detected492 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS310244
PHP5228165
PO File1171754
JavaScript20529

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin