84% login-popup-modal

Code Review | All Login Form

WordPress plugin All Login Form scored84%from 54 tests.

About plugin

  • Plugin page: login-popup-modal
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Sep 27, 2019
  • Latest release: Dec 31, 2021
  • Number of updates: 15
  • Update frequency: every 55.1 days
  • Top authors: cesarmaeso (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /3,708 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼0.87ms] Passed 4 tests

Analyzing server-side resources used by All Login Form
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1445.13 ▼9.64
Dashboard /wp-admin3.43 ▲0.1359.06 ▲8.13
Posts /wp-admin/edit.php3.54 ▲0.1955.37 ▲5.14
Add New Post /wp-admin/post-new.php6.01 ▲0.13102.08 ▼1.14
Media Library /wp-admin/upload.php3.35 ▲0.1237.99 ▲2.14
All Login Form /wp-admin/themes.php?page=login-modal-box3.4831.90

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

All Login Form: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,007 ▲26113.72 ▼0.939.75 ▲7.5243.67 ▼15.49
Dashboard /wp-admin2,218 ▲334.93 ▼1.10120.90 ▲12.9046.73 ▲2.72
Posts /wp-admin/edit.php2,098 ▲92.06 ▲0.0543.57 ▲5.4038.39 ▼0.23
Add New Post /wp-admin/post-new.php1,521 ▼721.73 ▼1.50723.27 ▲68.9060.38 ▲6.01
Media Library /wp-admin/upload.php1,400 ▲124.24 ▲0.06105.70 ▼6.4345.84 ▼2.12
All Login Form /wp-admin/themes.php?page=login-modal-box9561.7122.9930.79

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/login-popup-modal/login-popup-modal.php:414

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: emergente, membership site, ventana, login menu, engagement...

login-popup-modal/login-popup-modal.php 92% from 13 tests

The main file in "All Login Form" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,522 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP5168505620
JavaScript1141187453
CSS16832221
PO File28591218
Markdown22010

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.60
▷ Minimum class complexity8.00
▷ Maximum class complexity23.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods41
▷ Static methods49.76%
▷ Public methods4097.56%
▷ Protected methods12.44%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
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
PNG images were not found in this plugin