90% mm-ajax-login

Code Review | Mm Ajax Login

WordPress plugin Mm Ajax Login scored90%from 54 tests.

About plugin

  • Plugin page: mm-ajax-login
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.4
  • WordPress version: 6.3.1
  • First release: Aug 23, 2015
  • Latest release: Dec 7, 2015
  • Number of updates: 5
  • Update frequency: every 21.6 days
  • Top authors: Braad (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,495 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼10.30ms] Passed 4 tests

A check of server-side resources used by Mm Ajax Login
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.37 ▼14.62
Dashboard /wp-admin3.34 ▲0.0443.75 ▼9.63
Posts /wp-admin/edit.php3.39 ▲0.0449.95 ▲1.31
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.56 ▼18.01
Media Library /wp-admin/upload.php3.26 ▲0.0436.42 ▲1.08

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Mm Ajax Login
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,946 ▲20013.59 ▼0.715.18 ▲3.1743.10 ▼0.12
Dashboard /wp-admin2,206 ▲184.83 ▼0.05117.15 ▲8.4244.36 ▲0.02
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0138.82 ▲0.3035.77 ▲3.89
Add New Post /wp-admin/post-new.php1,514 ▼2417.54 ▼5.78677.02 ▼28.5665.69 ▲2.24
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0798.75 ▼5.8142.00 ▼1.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 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
4 plugin tags: lightbox, ajax, form, login

mm-ajax-login/mm-ajax-login.php Passed 13 tests

The primary PHP file in "Mm Ajax Login" version 1.0.0 is used by WordPress to initiate all plugin functionality
102 characters long description:
A custom lightbox login form that serves as a gatekeeper for links with the class "ajax-login-trigger"

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin394 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP15171147
CSS116386
JavaScript1313486
Markdown138075

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin