68% wp-loginout-link-with-login-popup

Code Review | WP login/out link with login popup

WordPress plugin WP login/out link with login popup scored68%from 54 tests.

About plugin

  • Plugin page: wp-loginout-link-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 4, 2016
  • Latest release: Nov 11, 2016
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: priyankabhave15 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,629 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▼0.90MB] [CPU: ▼32.79ms] Passed 4 tests

A check of server-side resources used by WP login/out link with login popup
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0624.17 ▼14.88
Dashboard /wp-admin3.04 ▼0.2724.82 ▼26.14
Posts /wp-admin/edit.php3.04 ▼0.3223.92 ▼19.46
Add New Post /wp-admin/post-new.php3.04 ▼2.8522.16 ▼70.68
Media Library /wp-admin/upload.php3.04 ▼0.1921.48 ▼14.64
Login/Logout settings /wp-admin/options-general.php?page=login-logout-settings3.0424.22

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
WLOG_status
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP login/out link with login popup
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,958 ▲22313.61 ▼0.689.04 ▲6.8138.89 ▼11.82
Dashboard /wp-admin2,208 ▲205.85 ▲0.9298.82 ▼16.5439.44 ▼5.86
Posts /wp-admin/edit.php2,097 ▲82.04 ▲0.0240.33 ▲4.9335.12 ▲1.19
Add New Post /wp-admin/post-new.php1,535 ▲2123.35 ▲5.89605.62 ▼69.2367.90 ▲16.99
Media Library /wp-admin/upload.php1,399 ▲84.40 ▲0.19102.00 ▲1.5444.04 ▲2.54
Login/Logout settings /wp-admin/options-general.php?page=login-logout-settings9811.7026.3427.50

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/wp-loginout-link-with-login-popup/includes/load-options.php+34
    Undefined index: _update_sett_nonce
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=login-logout-settings
    • > Notice in wp-content/plugins/wp-loginout-link-with-login-popup/includes/load-options.php+34
    Undefined index: _update_sett_nonce

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-loginout-link-with-login-popup/wlog-login.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (**Redirection Setting menu** - Redirection Setting menu.), #2 (**Redirection Setting page** - Setting page for redirection link.), #3 (**Login Link** - Duplicate page on click of duplicate link.), #4 (**Login Popup** - Open popup on click of login link.)
The official readme.txt is a good inspiration

wp-loginout-link-with-login-popup/wlog-login.php 92% from 13 tests

Analyzing the main PHP file in "WP login/out link with login popup" version 1.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-loginout-link-with-login-popup.php" instead of "wlog-login.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin560 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP22310355
JavaScript250107
CSS26398

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity33.50
▷ Minimum class complexity5.00
▷ Maximum class complexity62.00
Average method complexity5.33
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin