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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 39.43 ▲12.91 |
Dashboard /wp-admin | 3.08 ▲0.03 | 51.69 ▲0.55 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 58.59 ▲9.00 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.01 | 103.20 ▼562.08 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 38.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,717 ▲121 | 15.89 ▲0.40 | 9.73 ▼1.83 | 58.17 ▲3.97 |
Dashboard /wp-admin | 2,981 ▲44 | 5.93 ▼0.16 | 156.67 ▼7.52 | 129.07 ▲9.59 |
Posts /wp-admin/edit.php | 2,755 ▲16 | 2.72 ▲0.02 | 83.82 ▲5.51 | 110.71 ▲13.73 |
Add New Post /wp-admin/post-new.php | 3,643 ▲2,062 | 14.97 ▼3.27 | 536.85 ▲84.66 | 110.63 ▼6.09 |
Media Library /wp-admin/upload.php | 1,821 ▲73 | 5.05 ▲0.04 | 173.03 ▲3.55 | 136.82 ▲14.54 |
易登设置 /wp-admin/yiDeng.php | 26 | 0.90 | 0.13 | 11.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 57 | 57 | 422 |
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 code | 0.21 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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