83% jda-login-page

Code Review | JDA Login Page

WordPress plugin JDA Login Page scored83%from 54 tests.

About plugin

  • Plugin page: jda-login-page
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.3.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 11, 2022
  • Latest release: Jul 25, 2023
  • Number of updates: 11
  • Update frequency: every 48.1 days
  • Top authors: bangerous10 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /357 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.99ms] Passed 4 tests

Analyzing server-side resources used by JDA Login Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.40 ▼2.77
Dashboard /wp-admin3.31 ▲0.0047.58 ▼7.97
Posts /wp-admin/edit.php3.36 ▲0.0047.99 ▲3.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.11 ▼20.92
Media Library /wp-admin/upload.php3.23 ▲0.0039.02 ▲7.80

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

An overview of browser requirements for JDA Login Page
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.18 ▼0.191.65 ▼0.0140.43 ▼5.29
Dashboard /wp-admin2,198 ▲215.57 ▼0.0287.26 ▼9.8142.74 ▲1.98
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0439.65 ▼0.9733.90 ▼4.16
Add New Post /wp-admin/post-new.php1,526 ▼923.16 ▲5.24657.32 ▲30.5559.40 ▼5.94
Media Library /wp-admin/upload.php1,397 ▼04.19 ▼0.02105.69 ▲7.1043.84 ▲1.08

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jda-login-page/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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 need to be fixed:
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

jda-login-page/index.php 77% from 13 tests

"JDA Login Page" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 255 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("jda-login-page.php" instead of "index.php")
  • Requires at least: Required version must match the one declared in readme.txt ("5.8" instead of "5.8.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin189 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12524189

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin