Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.54ms] Passed 4 tests
A check of server-side resources used by xiaodu-jsdelivr
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 43.18 ▲0.22 |
Dashboard /wp-admin | 3.48 ▲0.18 | 47.42 ▼0.27 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 48.37 ▲0.36 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 89.18 ▼6.47 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 43.81 ▲5.97 |
xiaodu-jsdelivr /wp-admin/options-general.php?page=xiaodu_jsdelivr | 3.37 | 36.69 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
xiaodu-jsdelivr: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.24 ▼0.03 | 1.75 ▼0.36 | 39.36 ▼7.85 |
Dashboard /wp-admin | 2,199 ▲19 | 5.62 ▲0.09 | 90.12 ▼19.76 | 37.55 ▼7.30 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.01 | 37.49 ▼1.73 | 39.63 ▲1.78 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.00 ▲0.13 | 610.01 ▼38.85 | 52.70 ▼9.01 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.23 ▲0.02 | 105.94 ▲2.85 | 45.52 ▲1.23 |
xiaodu-jsdelivr /wp-admin/options-general.php?page=xiaodu_jsdelivr | 1,042 | 2.12 | 24.30 | 32.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/xiaodu-jsdelivr/inc/class-options.php
- > /wp-content/plugins/xiaodu-jsdelivr/replacer.php
- > /wp-content/plugins/xiaodu-jsdelivr/xiaodu-jsdelivr.php
- > /wp-content/plugins/xiaodu-jsdelivr/options-page.php
- > /wp-content/plugins/xiaodu-jsdelivr/scanner.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: jsdelivr, cdn, static
xiaodu-jsdelivr/xiaodu-jsdelivr.php Passed 13 tests
This is the main PHP file of "xiaodu-jsdelivr" version 1.4.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
47 characters long description:
Scan and serve static files from jsDelivr CDN .
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,166 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 125 | 219 | 1,166 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ 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 | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 3 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 25.00% |
Functions | 34 | |
▷ Named functions | 34 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There are no PNG files in this plugin