Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/yun-tui-jian/aliyunrec.guide.class.php+229
Non-static method AliyunRec_Guide::init() should not be called statically
Server metrics [RAM: ▼1.80MB] [CPU: ▼323.34ms] Passed 4 tests
An overview of server-side resources used by 云推荐
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.83 ▼0.89 | 4.98 ▼17.42 |
Dashboard /wp-admin | 1.85 ▼1.21 | 5.62 ▼38.51 |
Posts /wp-admin/edit.php | 1.85 ▼1.26 | 5.57 ▼32.79 |
Add New Post /wp-admin/post-new.php | 1.85 ▼3.58 | 6.19 ▼1,189.51 |
Media Library /wp-admin/upload.php | 1.85 ▼1.16 | 5.62 ▼32.55 |
云推荐 /wp-admin/options-general.php?page=aliyunrec.guide.class.php | 1.85 | 5.52 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 1 new option
New WordPress options |
---|
cfg_aliyunrec_state |
Browser metrics Passed 4 tests
An overview of browser requirements for 云推荐
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲102 | 15.97 ▲0.07 | 10.49 ▲2.58 | 51.40 ▲3.20 |
Dashboard /wp-admin | 2,935 ▲85 | 5.89 ▲0.01 | 134.06 ▲3.33 | 113.50 ▲10.64 |
Posts /wp-admin/edit.php | 2,711 ▲5 | 2.69 ▲0.00 | 64.70 ▼4.90 | 100.88 ▲11.37 |
Add New Post /wp-admin/post-new.php | 1,856 ▼1 | 19.07 ▼0.23 | 344.12 ▼28.37 | 109.40 ▲1.84 |
Media Library /wp-admin/upload.php | 1,780 ▲8 | 5.00 ▲0.00 | 148.24 ▼0.45 | 117.34 ▲3.52 |
云推荐 /wp-admin/options-general.php?page=aliyunrec.guide.class.php | 1,028 | 2.40 | 56.28 | 101.59 |
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
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/yun-tui-jian/aliyunrec.guide.class.php+229
Non-static method AliyunRec_Guide::init() should not be called statically
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=aliyunrec.guide.class.php
- > Deprecated in wp-content/plugins/yun-tui-jian/aliyunrec.guide.class.php+229
Non-static method AliyunRec_Guide::init() should not be called statically
- > GET request to /wp-admin/options-general.php?page=aliyunrec.guide.class.php
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method AliyunRec_Guide::addAdminMenu() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=aliyunrec.guide.class.php
- > Deprecated in wp-content/plugins/yun-tui-jian/aliyunrec.guide.class.php+111
Non-static method AliyunRec_Guide::getLocalLanguage() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=aliyunrec.guide.class.php
- > Deprecated in wp-content/plugins/yun-tui-jian/aliyunrec.guide.class.php+182
Non-static method AliyunRec_Common_Proxy_Service::getLocalLanguage() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=aliyunrec.guide.class.php
- > Deprecated in wp-content/plugins/yun-tui-jian/common/aliyunrec.common.proxy.service.php+56
Non-static method AliyunRec_Common_Config_Service::getConfig() should not be called statically
- > GET request to /wp-admin/options-general.php?page=aliyunrec.guide.class.php
- > Deprecated in wp-includes/class-wp-hook.php+303
Non-static method AliyunRec_Guide::manageSetting() should not be called statically
- > GET request to /wp-admin/options-general.php?page=aliyunrec.guide.class.php
- > Deprecated in wp-content/plugins/yun-tui-jian/aliyunrec.guide.class.php+111
Non-static method AliyunRec_Guide::getAliyunRecState() should not be called statically
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 9× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/yun-tui-jian/common/aliyunrec.common.config.service.php
- > /wp-content/plugins/yun-tui-jian/config/common.const.php
- > /wp-content/plugins/yun-tui-jian/common/aliyunrec.common.proxy.service.php
- > /wp-content/plugins/yun-tui-jian/config/template.request.php
- > /wp-content/plugins/yun-tui-jian/config/template.send.php
- > /wp-content/plugins/yun-tui-jian/common/aliyunrec.common.general.service.php
- > /wp-content/plugins/yun-tui-jian/config/common.application.php
- > /wp-content/plugins/yun-tui-jian/config/common.language.php
- > /wp-content/plugins/yun-tui-jian/config/template.option.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yun-tui-jian/aliyunrec.guide.class.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: aliyun, cnzz
yun-tui-jian/aliyunrec.guide.class.php 85% from 13 tests
The main file in "云推荐" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 358 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("yun-tui-jian.php" instead of "aliyunrec.guide.class.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin392 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 55 | 240 | 371 |
HTML | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin