Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Parse error in wp-content/plugins/wp-cdn-yes/inc/helper.php+17
syntax error, unexpected '|', expecting '{'
Server metrics [RAM: ▲0.00MB] [CPU: ▼4.78ms] Passed 4 tests
An overview of server-side resources used by WP-CDN-Yes - WordPress CDN 插件
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 34.83 ▼4.24 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.68 ▼2.64 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.50 ▲0.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 89.94 ▼13.22 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.04 ▲3.56 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP-CDN-Yes - WordPress CDN 插件
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.69 ▼0.08 | 1.66 ▼0.06 | 36.89 ▼3.50 |
Dashboard /wp-admin | 2,198 ▲21 | 5.63 ▼0.04 | 92.06 ▲4.06 | 40.20 ▼1.69 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.98 ▲0.03 | 40.04 ▲3.98 | 35.70 ▲2.20 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.89 ▼0.23 | 671.90 ▼32.04 | 52.01 ▼3.43 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.17 ▼0.03 | 94.35 ▼5.46 | 40.04 ▼6.43 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Parse error
syntax error, unexpected 'static' (T_STATIC) in wp-content/plugins/wp-cdn-yes/inc/class-setting.php on line 68
- > PHP Fatal error
Uncaught Error: Call to undefined function WePublish\\Autoload\\trailingslashit() in wp-content/plugins/wp-cdn-yes/vendor/wepublish/autoload/class-autoloader.php:50
- > PHP Parse error
syntax error, unexpected '|', expecting '{' in wp-content/plugins/wp-cdn-yes/inc/helper.php on line 17
- > PHP Parse 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: content distribution network, content delivery network, china, optimization, cdn
wp-cdn-yes/wp-cdn-yes.php Passed 13 tests
The entry point to "WP-CDN-Yes - WordPress CDN 插件" version 2.2.0 is a PHP file that has certain tags in its header comment area
35 characters long description:
WordPress CDN 多合一优化插件
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
No dangerous file extensions were detected567 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 168 | 274 | 567 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 17.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 3 | 37.50% |
▷ Anonymous functions | 5 | 62.50% |
Constants | 3 | |
▷ Global constants | 1 | 33.33% |
▷ Class constants | 2 | 66.67% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected