84% no-repeat-login

Code Review | No Repeat Login

WordPress plugin No Repeat Login scored84%from 54 tests.

About plugin

  • Plugin page: no-repeat-login
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Feb 24, 2014
  • Latest release: Mar 5, 2014
  • Number of updates: 7
  • Update frequency: every 1.3 days
  • Top authors: eflyjason (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /723 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.00MB] [CPU: ▼2.75ms] Passed 4 tests

A check of server-side resources used by No Repeat Login
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0133.62 ▼6.08
Dashboard /wp-admin3.31 ▲0.0044.77 ▼6.79
Posts /wp-admin/edit.php3.36 ▲0.0046.51 ▲2.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0091.14 ▲0.20
Media Library /wp-admin/upload.php3.23 ▲0.0035.94 ▲1.66

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for No Repeat Login
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.36 ▼1.381.81 ▲0.0240.50 ▼6.06
Dashboard /wp-admin2,206 ▲185.86 ▲0.99105.20 ▲4.4340.98 ▼1.73
Posts /wp-admin/edit.php2,092 ▲32.03 ▼0.0240.24 ▲2.1235.34 ▲3.84
Add New Post /wp-admin/post-new.php1,533 ▲1322.89 ▼0.36584.59 ▼111.8550.39 ▼10.37
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0197.40 ▼11.7240.78 ▼3.80

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/no-repeat-login/no-repeat-login.php:32

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

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: user, login

no-repeat-login/no-repeat-login.php Passed 13 tests

The primary PHP file in "No Repeat Login" version 1.0.2 is used by WordPress to initiate all plugin functionality
129 characters long description:
Redirect the user who have already login from login.php to Admin Panel. 將已經登陸的用戶從登陸頁面跳轉至控制台

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 detected11 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102111

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
No PNG images were found in this plugin