Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼138.89ms] Passed 4 tests
Server-side resources used by WP资源下载管理
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.92 ▲0.20 | 40.40 ▲17.54 |
Dashboard /wp-admin | 3.16 ▲0.11 | 50.34 ▼5.93 |
Posts /wp-admin/edit.php | 3.27 ▲0.17 | 52.28 ▲1.23 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.08 | 102.57 ▼563.65 |
Media Library /wp-admin/upload.php | 3.11 ▲0.10 | 47.60 ▲12.79 |
WP资源下载管理 /wp-admin/options-general.php?page=dlip_pack | 3.10 | 36.12 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WP资源下载管理
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.95 ▼0.05 | 13.22 ▲4.22 | 55.05 ▲6.03 |
Dashboard /wp-admin | 2,994 ▲60 | 5.98 ▼0.22 | 164.76 ▼9.27 | 123.48 ▲4.50 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.72 ▼0.00 | 78.09 ▼9.75 | 100.51 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,912 ▲229 | 23.25 ▲7.49 | 399.06 ▼54.39 | 165.00 ▲47.86 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.04 ▲0.02 | 169.61 ▼4.65 | 133.34 ▲7.77 |
WP资源下载管理 /wp-admin/options-general.php?page=dlip_pack | 2,641 | 2.73 | 72.38 | 236.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/download-info-page/tpl/widget_download.php
- > /wp-content/plugins/download-info-page/tpl/download.php
- > /wp-content/plugins/download-info-page/tpl/download_btn.php
- 36× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: meta_value in wp-content/plugins/download-info-page/tpl/meta_box.php on line 51
- > PHP Notice
Undefined variable: need_login in wp-content/plugins/download-info-page/tpl/download.php on line 31
- > PHP Notice
Undefined variable: meta_value in wp-content/plugins/download-info-page/tpl/meta_box.php on line 62
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/download-info-page/tpl/meta_box.php:88
- > PHP Notice
Undefined variable: wpvk_install in wp-content/plugins/download-info-page/tpl/meta_box.php on line 86
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/download-info-page/tpl/meta_box.php on line 45
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/download-info-page/tpl/meta_box.php on line 51
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/download-info-page/tpl/meta_box.php on line 55
- > PHP Notice
Undefined variable: display_count in wp-content/plugins/download-info-page/tpl/widget_download.php on line 20
- > PHP Notice
Undefined variable: wpvk_install in wp-content/plugins/download-info-page/tpl/meta_box.php on line 83
- > PHP Notice
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 uses markdown syntax to describe your plugin to the world
4 plugin tags: thunder, magnet download, download, url
download-info-page/index.php 85% from 13 tests
The primary PHP file in "WP资源下载管理" version 1.3.8 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 251 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("download-info-page.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin767 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 208 | 138 | 758 |
CSS | 4 | 0 | 18 | 4 |
JavaScript | 4 | 0 | 0 | 4 |
HTML | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 35.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 79.00 |
Average method complexity | 4.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 11 | 37.93% |
▷ Public methods | 28 | 96.55% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.45% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin