Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼286.87ms] Passed 4 tests
Analyzing server-side resources used by zhanzhangb-tcdn
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.07 | 57.73 ▼0.10 |
Dashboard /wp-admin | 3.49 ▲0.08 | 47.04 ▲9.62 |
Posts /wp-admin/edit.php | 3.72 ▲0.08 | 93.52 ▲45.07 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.02 | 99.20 ▼1,158.43 |
Media Library /wp-admin/upload.php | 3.37 ▲0.07 | 32.52 ▲1.42 |
站长帮 - 自动刷新腾讯云CDN设置 /wp-admin/options-general.php?page=zhanzhangb_tcdn | 3.34 | 64.50 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
zhanzhangb_tcdn_activation |
Browser metrics Passed 4 tests
This is an overview of browser requirements for zhanzhangb-tcdn
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,769 ▲15 | 15.39 ▼0.33 | 6.19 ▲0.12 | 2.24 ▼0.76 |
Dashboard /wp-admin | 2,897 ▲43 | 6.11 ▼0.07 | 119.38 ▼13.13 | 168.43 ▲6.75 |
Posts /wp-admin/edit.php | 2,696 ▲2 | 3.23 ▲0.00 | 63.36 ▲0.46 | 152.70 ▲10.26 |
Add New Post /wp-admin/post-new.php | 1,755 ▲94 | 21.91 ▲4.26 | 465.55 ▲82.70 | 170.99 ▲10.48 |
Media Library /wp-admin/upload.php | 1,706 ▲5 | 5.47 ▼0.03 | 148.51 ▼4.85 | 201.67 ▲15.98 |
站长帮 - 自动刷新腾讯云CDN设置 /wp-admin/options-general.php?page=zhanzhangb_tcdn | 1,046 | 2.51 | 63.32 | 182.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 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: cdn, cache
zhanzhangb-tcdn/zhanzhangb-tcdn.php 92% from 13 tests
Analyzing the main PHP file in "zhanzhangb-tcdn" version 1.2.0
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 162 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected308 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 22 | 34 | 308 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 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 | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin