Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.17MB] [CPU: ▼7.26ms] Passed 4 tests
An overview of server-side resources used by QQWorld Speed for China
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 39.18 ▲2.59 |
Dashboard /wp-admin | 3.48 ▲0.18 | 44.65 ▼3.96 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 43.06 ▼3.77 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.27 | 75.21 ▼20.99 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 33.41 ▼0.33 |
QQWorld Speed for China /wp-admin/options-general.php?page=qqworld-speed-4-china | 3.43 | 31.40 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by QQWorld Speed for China
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,753 ▲7 | 14.74 ▲0.12 | 1.70 ▲0.10 | 46.19 ▲7.08 |
Dashboard /wp-admin | 2,167 ▼7 | 5.52 ▲0.02 | 95.33 ▲5.78 | 43.24 ▲4.65 |
Posts /wp-admin/edit.php | 2,079 ▼21 | 2.00 ▲0.05 | 49.26 ▲12.79 | 42.05 ▲7.38 |
Add New Post /wp-admin/post-new.php | 1,510 ▼18 | 23.27 ▲0.12 | 656.53 ▼7.07 | 56.13 ▼1.11 |
Media Library /wp-admin/upload.php | 1,381 ▼19 | 4.15 ▼0.08 | 103.33 ▼12.79 | 48.03 ▲0.39 |
QQWorld Speed for China /wp-admin/options-general.php?page=qqworld-speed-4-china | 1,438 | 3.16 | 38.40 | 61.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=qqworld-speed-4-china
- > Notice in wp-content/plugins/qqworld-speed-4-china/qqworld-speed4china.php+136
ob_end_flush(): failed to delete and flush buffer. No buffer to delete or flush
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/qqworld-speed-4-china/qqworld-speed4china.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: speed, china
qqworld-speed-4-china/qqworld-speed4china.php 92% from 13 tests
"QQWorld Speed for China" version 1.6.6.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("qqworld-speed-4-china.php" instead of "qqworld-speed4china.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,231 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 60 | 67 | 685 |
PO File | 3 | 234 | 321 | 510 |
CSS | 1 | 0 | 0 | 36 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 69.00 |
▷ Minimum class complexity | 69.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.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 | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 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 | 2 | |
▷ Global constants | 2 | 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
2 compressed PNG files occupy 0.04MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wechat-qrcode.png | 30.54KB | 29.82KB | ▼ 2.37% |
images/avatar_256x256.png | 7.67KB | 7.38KB | ▼ 3.86% |