83% yideng

Code Review | 易登

WordPress plugin 易登 scored 83% from 54 tests.

About plugin

  • Plugin page: yideng
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.1
  • WordPress version: 5.8.1
  • First release: Apr 12, 2015
  • Latest release: Apr 12, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: dsgygb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,003 total downloads

Benchmarks

Plugin footprint Passed 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.02MB] [CPU: ▼138.42ms] Passed 4 tests

Analyzing server-side resources used by 易登
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1439.43 ▲12.91
Dashboard /wp-admin3.08 ▲0.0351.69 ▲0.55
Posts /wp-admin/edit.php3.14 ▲0.0358.59 ▲9.00
Add New Post /wp-admin/post-new.php5.44 ▲0.01103.20 ▼562.08
Media Library /wp-admin/upload.php3.03 ▲0.0338.45 ▼1.16

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for 易登
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,717 ▲12115.89 ▲0.409.73 ▼1.8358.17 ▲3.97
Dashboard /wp-admin2,981 ▲445.93 ▼0.16156.67 ▼7.52129.07 ▲9.59
Posts /wp-admin/edit.php2,755 ▲162.72 ▲0.0283.82 ▲5.51110.71 ▲13.73
Add New Post /wp-admin/post-new.php3,643 ▲2,06214.97 ▼3.27536.85 ▲84.66110.63 ▼6.09
Media Library /wp-admin/upload.php1,821 ▲735.05 ▲0.04173.03 ▲3.55136.82 ▲14.54
易登设置 /wp-admin/yiDeng.php260.900.1311.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/yideng/yiDengToken.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/yideng/yiDengSetting.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function home_url() in wp-content/plugins/yideng/yiDengLogin.php:29
    • > PHP Notice
      Undefined index: token in wp-content/plugins/yideng/yiDengToken.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/yideng/yiDengHandle.php:19

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/yiDeng.php
    • > Network (severe)
    wp-admin/yiDeng.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
5 plugin tags: logout, register, login, signup, password

yideng/yiDengLogin.php 92% from 13 tests

The entry point to "易登" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("yideng.php" instead of "yiDengLogin.php")

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
Everything looks great! No dangerous files found in this plugin422 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP55757422

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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