83% wp-ajax-register-login

Code Review | WP Ajax Register Login

WordPress plugin WP Ajax Register Login scored83%from 54 tests.

About plugin

  • Plugin page: wp-ajax-register-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Sep 25, 2015
  • Latest release: Sep 25, 2015
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: minimamente (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,335 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼3.88ms] Passed 4 tests

An overview of server-side resources used by WP Ajax Register Login
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0842.26 ▲2.48
Dashboard /wp-admin3.38 ▲0.0746.55 ▼6.07
Posts /wp-admin/edit.php3.43 ▲0.0749.94 ▲4.35
Add New Post /wp-admin/post-new.php5.96 ▲0.0793.39 ▼11.12
Media Library /wp-admin/upload.php3.30 ▲0.0735.27 ▼0.82
WP ARL /wp-admin/options-general.php?page=wparl3.2630.82

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Ajax Register Login
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,115 ▲36914.17 ▼0.4810.02 ▲8.2345.50 ▲1.72
Dashboard /wp-admin2,210 ▲224.82 ▼0.09112.40 ▼3.6343.05 ▼0.99
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.1640.89 ▲3.8734.53 ▼0.85
Add New Post /wp-admin/post-new.php1,522 ▼723.21 ▲4.88632.57 ▲10.3454.99 ▼3.78
Media Library /wp-admin/upload.php1,395 ▲44.21 ▼0.0099.77 ▼2.8744.12 ▼0.18
WP ARL /wp-admin/options-general.php?page=wparl7852.0723.3827.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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 add_action() in wp-content/plugins/wp-ajax-register-login/wp-arl.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (Login), #2 (Register)
  • Plugin Name: You should set the name of your plugin on the first line ( === wp-ajax-register-login === )
Please take inspiration from this readme.txt

wp-ajax-register-login/wp-arl.php 85% from 13 tests

The principal PHP file in "WP Ajax Register Login" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-ajax-register-login.php" instead of "wp-arl.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin641 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP111466262
CSS21410159
PO File15152129
JavaScript2161691

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions11
▷ Named functions1090.91%
▷ Anonymous functions19.09%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png55.52KB14.84KB▼ 73.26%
screenshot-2.png52.55KB13.65KB▼ 74.03%