83% lianaautomation-login

Code Review | LianaAutomation Login

WordPress plugin LianaAutomation Login scored83%from 54 tests.

About plugin

  • Plugin page: lianaautomation-l...
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Oct 27, 2022
  • Latest release: Sep 7, 2023
  • Number of updates: 5
  • Update frequency: every 63.0 days
  • Top authors: lianatechnologies (80%)timopohjanvirtaliana (40%)

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) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

Analyzing server-side resources used by LianaAutomation Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0049.26 ▲1.48
Dashboard /wp-admin3.33 ▲0.0250.10 ▼4.90
Posts /wp-admin/edit.php3.38 ▲0.0252.20 ▼1.22
Add New Post /wp-admin/post-new.php5.91 ▲0.0295.38 ▼0.61
Media Library /wp-admin/upload.php3.25 ▲0.0240.69 ▼17.02
Login /wp-admin/admin.php?page=lianaautomation-login3.2133.12

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for LianaAutomation Login
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.22 ▼1.361.80 ▼0.0637.69 ▼9.62
Dashboard /wp-admin2,225 ▲405.86 ▼0.03109.97 ▲10.3042.18 ▼1.66
Posts /wp-admin/edit.php2,111 ▲222.03 ▲0.0340.47 ▼1.7038.17 ▲0.27
Add New Post /wp-admin/post-new.php1,558 ▲3018.17 ▼5.10655.72 ▼48.7956.13 ▲5.14
Media Library /wp-admin/upload.php1,410 ▲284.14 ▼0.05102.54 ▲2.3847.99 ▲1.15
Login /wp-admin/admin.php?page=lianaautomation-login8392.0822.2934.35

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/lianaautomation-login/admin/class-lianaautomation-login.php:418
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-login/includes/lianaautomation-login.php:205
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-login/includes/lianaautomation-cookie.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lianaautomation-login/includes/lianaautomation-cookie.php:36

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 90% 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
4 plugin tags: ecommerce, automation, e-commerce, online store

lianaautomation-login/lianaautomation-login.php 77% from 13 tests

The main PHP file in "LianaAutomation Login" ver. 1.0.4 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.8" instead of "5.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin443 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP564202435
Markdown1508

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin