83% jeba-ajax-login-and-register

Code Review | Jeba ajax login/register

WordPress plugin Jeba ajax login/register scored83%from 54 tests.

About plugin

  • Plugin page: jeba-ajax-login-a...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.0
  • WordPress version: 6.3.1
  • First release: May 11, 2015
  • Latest release: May 11, 2015
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: jahed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,337 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.53ms] Passed 4 tests

Analyzing server-side resources used by Jeba ajax login/register
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.94 ▼0.85
Dashboard /wp-admin3.31 ▲0.0149.99 ▼2.86
Posts /wp-admin/edit.php3.36 ▲0.0150.09 ▼1.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.53 ▼20.64
Media Library /wp-admin/upload.php3.24 ▲0.0139.03 ▼1.41

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Jeba ajax login/register
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,016 ▲25514.16 ▼0.066.55 ▲4.8349.35 ▲5.05
Dashboard /wp-admin2,227 ▲244.96 ▼0.89120.19 ▲11.5443.56 ▲5.72
Posts /wp-admin/edit.php2,112 ▲122.09 ▲0.0943.24 ▲2.7433.21 ▼5.55
Add New Post /wp-admin/post-new.php1,535 ▲923.17 ▲5.56637.63 ▼4.7369.41 ▲7.40
Media Library /wp-admin/upload.php1,409 ▲154.38 ▲0.07115.67 ▲8.8648.11 ▲0.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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 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/jeba-ajax-login-and-register/main-functions.php:15

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 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is missing
  • Screenshots: Add an image for screenshot #1 (How to use shortcode in editor.)
The official readme.txt might help

jeba-ajax-login-and-register/main-functions.php 92% from 13 tests

"Jeba ajax login/register" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("jeba-ajax-login-and-register.php" instead of "main-functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,337 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript21491221,104
CSS1160124
PHP13719109

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin