84% ljpc-easy-login-client

Code Review | LJPc Easy Login Client

WordPress plugin LJPc Easy Login Client scored84%from 54 tests.

About plugin

  • Plugin page: ljpc-easy-login-c...
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9.0
  • WordPress version: 6.3.1
  • First release: Jan 26, 2022
  • Latest release: Feb 1, 2022
  • Number of updates: 7
  • Update frequency: every 0.9 days
  • Top authors: Lars- (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /294 total downloads

Benchmarks

Plugin footprint 83% 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.09MB] [CPU: ▼7.16ms] Passed 4 tests

Server-side resources used by LJPc Easy Login Client
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1034.08 ▼8.56
Dashboard /wp-admin3.40 ▲0.0643.62 ▼15.58
Posts /wp-admin/edit.php3.52 ▲0.1646.46 ▲0.61
Add New Post /wp-admin/post-new.php5.99 ▲0.1081.80 ▼5.11
Media Library /wp-admin/upload.php3.33 ▲0.0934.98 ▲2.72

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for LJPc Easy Login Client
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.27 ▼1.114.31 ▲2.5037.93 ▼4.40
Dashboard /wp-admin2,210 ▲224.88 ▼0.01118.20 ▼0.0144.50 ▲1.34
Posts /wp-admin/edit.php2,095 ▲62.05 ▲0.0835.98 ▼0.8430.27 ▼4.25
Add New Post /wp-admin/post-new.php1,537 ▲823.18 ▲0.02672.35 ▼28.3752.82 ▼8.36
Media Library /wp-admin/upload.php1,392 ▲44.25 ▲0.0797.13 ▼14.4441.68 ▼5.80

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following items
  • 1× 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/ljpc-easy-login-client/init.php:27

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
4 plugin tags: easy login, easy, login, ljpc

ljpc-easy-login-client/init.php 92% from 13 tests

The main PHP file in "LJPc Easy Login Client" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ljpc-easy-login-client.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,708 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP222926861,371
Markdown1540235
JSON200102

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity18.15
▷ Minimum class complexity1.00
▷ Maximum class complexity73.00
Average method complexity3.97
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods77
▷ Static methods4355.84%
▷ Public methods5976.62%
▷ Protected methods00.00%
▷ Private methods1823.38%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.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
No PNG files were detected