10% place-login

Code Review | Place Login

WordPress plugin Place Login scored 10% from 54 tests.

About plugin

  • Plugin page: place-login
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.4
  • WordPress version: 5.8.1
  • First release: Oct 23, 2012
  • Latest release: Jan 4, 2016
  • Number of updates: 71
  • Update frequency: every 16.5 days
  • Top authors: lebasca (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 6,527 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/place-login/includes/widget.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; plogin_Widget has a deprecated constructor

Server metrics [RAM: ▼1.74MB] [CPU: ▼223.48ms] Passed 4 tests

A check of server-side resources used by Place Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.90 ▼0.948.07 ▼20.42
Dashboard /wp-admin1.92 ▼1.156.03 ▼34.66
Posts /wp-admin/edit.php1.92 ▼1.194.96 ▼31.80
Add New Post /wp-admin/post-new.php1.92 ▼3.524.27 ▼804.62
Media Library /wp-admin/upload.php1.92 ▼1.084.31 ▼22.83
Place Login /wp-admin/options-general.php?page=pl1.924.22

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
plogin_register
widget_plogin_widget
plogin_lostpwd
plogin_after_login
plogin_links
plogin_after_logout
plogin_parent_page

Browser metrics Passed 4 tests

This is an overview of browser requirements for Place Login
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,880 ▲22917.28 ▲1.2810.70 ▲4.0778.31 ▼2.20
Dashboard /wp-admin2,939 ▲436.75 ▲0.55117.13 ▼12.63168.59 ▼7.93
Posts /wp-admin/edit.php2,715 ▼223.12 ▼0.2569.72 ▲4.54138.37 ▼3.26
Add New Post /wp-admin/post-new.php2,072 ▼1,73521.58 ▲2.75389.16 ▼56.98157.02 ▼6.70
Media Library /wp-admin/upload.php1,754 ▲25.91 ▲0.42156.66 ▲11.65192.52 ▲4.05
Place Login /wp-admin/options-general.php?page=pl1,2573.0255.77144.69

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/place-login/includes/widget.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; plogin_Widget has a deprecated constructor
  • The uninstall procedure has failed, leaving 1 option in the database
    • widget_plogin_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=pl
    • > Deprecated in wp-content/plugins/place-login/includes/widget.php+16
    Methods with the same name as their class will not be constructors in a future version of PHP; plogin_Widget has a deprecated constructor
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=pl
    • > Warning in wp-content/plugins/place-login/place-login.php+512
    Use of undefined constant flush_rewrite_rules - assumed 'flush_rewrite_rules' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/options-general.php?page=pl
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method plogin_Widget::register_widget() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=pl
    • > User deprecated in wp-includes/functions.php+5211
    force_ssl_login is deprecated since version 4.4.0! Use force_ssl_admin() instead.
    • > GET request to /wp-admin/options-general.php?page=pl
    • > User deprecated in wp-includes/functions.php+5304
    The called constructor method for WP_Widget in plogin_Widget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=pl
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=pl
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/place-login/templates/plogin_profile.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/place-login/templates/plogin_lostpwd.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/place-login/templates/plogin_register.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: sidebar, form, login, button login, place login...

place-login/place-login.php 92% from 13 tests

The entry point to "Place Login" version 1.1.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Everything looks great! No dangerous files found in this plugin1,918 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP7180127776
PO File2158166509
CSS236159501
JavaScript4107132

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity25.33
▷ Minimum class complexity2.00
▷ Maximum class complexity67.00
Average method complexity2.97
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods3389.19%
▷ Protected methods00.00%
▷ Private methods410.81%
Functions14
▷ Named functions14100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/arrow-up-gray.png0.21KB0.14KB▼ 31.28%
images/arrow-down-gray.png0.21KB0.14KB▼ 30.66%