83% formulario-de-logueo

Code Review | Setting up the WordPress login template

WordPress plugin Setting up the WordPress login template scored 83% from 54 tests.

About plugin

  • Plugin page: formulario-de-logueo
  • Plugin version: 1.3.7
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 6.3.1
  • First release: Dec 8, 2020
  • Latest release: Jul 28, 2021
  • Number of updates: 31
  • Update frequency: every 7.5 days
  • Top authors: xurxo (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 572 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
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.58ms] Passed 4 tests

An overview of server-side resources used by Setting up the WordPress login template
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.45 ▼2.16
Dashboard /wp-admin3.41 ▲0.1051.92 ▲2.01
Posts /wp-admin/edit.php3.52 ▲0.1652.83 ▲6.83
Add New Post /wp-admin/post-new.php5.98 ▲0.0985.68 ▼13.01
Media Library /wp-admin/upload.php3.30 ▲0.0759.30 ▲24.20

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Setting up the WordPress login template
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,098 ▲36314.66 ▲0.501.73 ▼0.1639.47 ▼5.60
Dashboard /wp-admin2,497 ▲3066.43 ▲0.53124.46 ▲23.7440.17 ▼6.31
Posts /wp-admin/edit.php2,256 ▲1673.38 ▲1.3346.83 ▲9.2330.28 ▼0.68
Add New Post /wp-admin/post-new.php1,552 ▲1023.92 ▲5.76629.57 ▼77.8929.96 ▼23.77
Media Library /wp-admin/upload.php1,395 ▲74.29 ▲0.0389.66 ▼19.3146.79 ▼0.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-includes/pluggable.php' (include_path='.:/usr/share/php') in wp-content/plugins/formulario-de-logueo/libs/class.principal.php on line 2
    • > PHP Warning
      require_once(ABSPATHwp-includes/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/formulario-de-logueo/libs/class.principal.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/formulario-de-logueo/libs/class.principal.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/formulario-de-logueo/views/dashboard.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 83% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: wp-login, wp-admin, admin, login template, login

formulario-de-logueo/loginwebferrol.php 62% from 13 tests

The entry point to "Setting up the WordPress login template" version 1.3.7 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 157 characters long)
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.2" instead of "7.3")
  • 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
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("formulario-de-logueo.php" instead of "loginwebferrol.php")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("./languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin620 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP645110267
PO File2364897
SVG10174
JavaScript271264
CSS29259
Sass134059

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity10.00
▷ Minimum class complexity4.00
▷ Maximum class complexity18.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits1
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods27
▷ Static methods1140.74%
▷ Public methods27100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin