84% wp-rslogin

Code Review | WP RSlogin

WordPress plugin WP RSlogin scored84%from 54 tests.

About plugin

  • Plugin page: wp-rslogin
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.3.2
  • WordPress version: 6.3.1
  • First release: Feb 15, 2012
  • Latest release: Jun 1, 2017
  • Number of updates: 47
  • Update frequency: every 41.6 days
  • Top authors: ryansutana (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,041 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.02MB] [CPU: ▼5.82ms] Passed 4 tests

Server-side resources used by WP RSlogin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.21 ▲3.19
Dashboard /wp-admin3.32 ▲0.0248.88 ▼1.48
Posts /wp-admin/edit.php3.37 ▲0.0248.37 ▼4.88
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.21 ▼18.72
Media Library /wp-admin/upload.php3.24 ▲0.0240.10 ▲1.81

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 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

This is an overview of browser requirements for WP RSlogin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,118 ▲35714.08 ▼0.3112.26 ▲10.7047.11 ▼1.22
Dashboard /wp-admin2,259 ▲795.60 ▲0.0275.02 ▼16.1541.85 ▼6.35
Posts /wp-admin/edit.php2,171 ▲712.21 ▲0.2038.53 ▲2.1642.36 ▲3.46
Add New Post /wp-admin/post-new.php1,528 ▼023.62 ▲0.91662.96 ▲16.6859.15 ▲9.62
Media Library /wp-admin/upload.php1,479 ▲794.42 ▲0.2494.80 ▼16.5841.42 ▼4.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 13× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-rslogin/wp-rslogin.php on line 11
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-rslogin/wp-rslogin.php on line 12
    • > PHP Warning
      include_once(ABSPATHWPINC/pluggable.php): failed to open stream: No such file or directory in wp-content/plugins/wp-rslogin/wp-rslogin.php on line 11
    • > PHP Warning
      include_once(ABSPATHWPINC/query.php): failed to open stream: No such file or directory in wp-content/plugins/wp-rslogin/wp-rslogin.php on line 12
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-rslogin/wp-rslogin.php on line 13
    • > PHP Warning
      include_once(ABSPATHWPINC/link-template.php): failed to open stream: No such file or directory in wp-content/plugins/wp-rslogin/wp-rslogin.php on line 13
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-rslogin/wp-rslogin.php on line 12
    • > PHP Warning
      Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-rslogin/wp-rslogin.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-rslogin/wp-rslogin.php:16
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHWPINC/pluggable.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/wp-rslogin/wp-rslogin.php on line 11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === wp-rslogin === )
The official readme.txt might help

wp-rslogin/wp-rslogin.php Passed 13 tests

This is the main PHP file of "WP RSlogin" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
104 characters long description:
An elegant jQuery Ajax Wordpress plugin that helps your users login without touching in the admin panel.

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
No dangerous file extensions were detected217 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP44724194
CSS18022
JavaScript1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin