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.03MB] [CPU: ▼4.23ms] Passed 4 tests
This is a short check of server-side resources used by QQWorld云存储
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.73 ▼10.81 |
Dashboard /wp-admin | 3.33 ▲0.03 | 43.24 ▼2.46 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 44.15 ▼5.17 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 94.02 ▲6.85 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.21 ▲1.53 |
QQWorld Cloud Storage /wp-admin/options-general.php?page=qqworld-cloud-storage | 3.58 | 29.86 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
QQWorld云存储: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.27 ▼1.48 | 1.59 ▼0.65 | 38.34 ▼6.70 |
Dashboard /wp-admin | 2,210 ▲22 | 5.83 ▲0.02 | 102.39 ▼10.39 | 36.06 ▼6.64 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.96 ▼0.02 | 39.09 ▼1.16 | 34.24 ▼2.85 |
Add New Post /wp-admin/post-new.php | 1,545 ▲25 | 18.30 ▼4.72 | 614.64 ▲10.15 | 56.62 ▲9.83 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.26 ▲0.02 | 94.01 ▼7.79 | 42.11 ▼1.90 |
QQWorld Cloud Storage /wp-admin/options-general.php?page=qqworld-cloud-storage | 3,421 | 16.41 | 515.86 | 31.00 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/qqworld-cloud-storage/settings.php
- 12× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/qqworld-cloud-storage/qqworld-cloud-storage.php:12
- > PHP Warning
Use of undefined constant QQWORLD_CLOUD_STORAGE_URL - assumed 'QQWORLD_CLOUD_STORAGE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/qqworld-cloud-storage/settings.php on line 214
- > PHP Warning
Use of undefined constant QQWORLD_CLOUD_STORAGE_URL - assumed 'QQWORLD_CLOUD_STORAGE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/qqworld-cloud-storage/settings.php on line 211
- > PHP Warning
Use of undefined constant QQWORLD_CLOUD_STORAGE_URL - assumed 'QQWORLD_CLOUD_STORAGE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/qqworld-cloud-storage/settings.php on line 193
- > PHP Warning
Use of undefined constant QQWORLD_CLOUD_STORAGE_URL - assumed 'QQWORLD_CLOUD_STORAGE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/qqworld-cloud-storage/settings.php on line 202
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/qqworld-cloud-storage/settings.php:221
- > PHP Warning
Use of undefined constant QQWORLD_CLOUD_STORAGE_URL - assumed 'QQWORLD_CLOUD_STORAGE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/qqworld-cloud-storage/settings.php on line 208
- > PHP Warning
Use of undefined constant QQWORLD_CLOUD_STORAGE_URL - assumed 'QQWORLD_CLOUD_STORAGE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/qqworld-cloud-storage/settings.php on line 199
- > PHP Warning
Use of undefined constant QQWORLD_CLOUD_STORAGE_URL - assumed 'QQWORLD_CLOUD_STORAGE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/qqworld-cloud-storage/settings.php on line 205
- > PHP Warning
Use of undefined constant QQWORLD_CLOUD_STORAGE_URL - assumed 'QQWORLD_CLOUD_STORAGE_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/qqworld-cloud-storage/settings.php on line 190
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 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
2 plugin tags: auto, cloud storage
qqworld-cloud-storage/qqworld-cloud-storage.php 92% from 13 tests
"QQWorld云存储" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 173 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,386 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 3 | 732 | 1,053 | 1,872 |
PHP | 2 | 34 | 48 | 916 |
SVG | 10 | 0 | 0 | 464 |
CSS | 1 | 8 | 0 | 125 |
JavaScript | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
6 compressed PNG files occupy 0.21MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/qrcode/wechat-follow.png | 36.72KB | 35.83KB | ▼ 2.42% |
images/banner-772x250.png | 64.94KB | 63.69KB | ▼ 1.92% |
images/qrcode/weibo-follow.png | 24.80KB | 23.89KB | ▼ 3.66% |
images/wechat-qrcode.png | 30.54KB | 29.82KB | ▼ 2.37% |
images/qrcode/qq-follow.png | 41.34KB | 40.42KB | ▼ 2.22% |