Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.92MB] [CPU: ▲5.60ms] Passed 4 tests
Analyzing server-side resources used by QQWorld通行证 / QQWorld Passport
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.38 ▲0.92 | 60.80 ▲23.87 |
Dashboard /wp-admin | 4.23 ▲0.92 | 57.75 ▲11.48 |
Posts /wp-admin/edit.php | 4.28 ▲0.92 | 56.81 ▲7.36 |
Add New Post /wp-admin/post-new.php | 6.83 ▲0.94 | 92.60 ▼7.59 |
Media Library /wp-admin/upload.php | 4.15 ▲0.92 | 45.07 ▲11.16 |
Server storage [IO: ▲1.32MB] [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: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for QQWorld通行证 / QQWorld Passport
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲111 | 13.21 ▼1.10 | 2.20 ▲0.37 | 42.48 ▲3.02 |
Dashboard /wp-admin | 2,224 ▲36 | 5.97 ▲1.04 | 99.29 ▼14.25 | 41.02 ▼3.26 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 2.03 ▲0.02 | 37.20 ▼3.29 | 32.45 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,531 ▼2 | 23.42 ▲0.20 | 655.27 ▲9.59 | 57.89 ▲2.49 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.23 ▼0.01 | 96.27 ▼2.96 | 42.95 ▼0.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 15× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'qqworld_passport\\core' not found in wp-content/plugins/qqworld-passport/modules/facebook/init.php:6
- > PHP Fatal error
Uncaught Error: Class 'qqworld_passport\\core' not found in wp-content/plugins/qqworld-passport/modules/qq/init.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function qqworld_passport\\plugin_dir_url() in wp-content/plugins/qqworld-passport/qqworld-passport.php:31
- > PHP Fatal error
Uncaught Error: Class 'qqworld_passport\\core' not found in wp-content/plugins/qqworld-passport/modules/google/init.php:6
- > PHP Fatal error
Uncaught Error: Class 'qqworld_passport\\core' not found in wp-content/plugins/qqworld-passport/modules/taobao/init.php:6
- > PHP Fatal error
Uncaught Error: Class 'qqworld_passport\\core' not found in wp-content/plugins/qqworld-passport/modules/weibo/init.php:6
- > PHP Warning
include_once(QQWORLD_PASSPORT_DIRlib/wechat/weixin.sdk.phar): failed to open stream: No such file or directory in wp-content/plugins/qqworld-passport/modules/wechat/init.php on line 36
- > PHP Fatal error
Uncaught Error: Class 'qqworld_passport\\core' not found in wp-content/plugins/qqworld-passport/modules/line/init.php:6
- > PHP Warning
include_once(): Failed opening 'QQWORLD_PASSPORT_DIRlib/wechat/weixin.sdk.phar' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/qqworld-passport/modules/wechat/init.php on line 36
- > PHP Fatal error
Uncaught Error: Class 'qqworld_passport\\core' not found in wp-content/plugins/qqworld-passport/modules/xiaomi/init.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
qqworld-passport/qqworld-passport.php Passed 13 tests
The principal PHP file in "QQWorld通行证 / QQWorld Passport" v. 1.2.1 is loaded by WordPress automatically on each request
62 characters long description:
QQWorld Passport for Wordpress, Many Oauth 2.0 log in methods.
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
No dangerous file extensions were detected6,055 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 379 | 606 | 3,685 |
PO File | 3 | 720 | 1,428 | 1,839 |
CSS | 1 | 12 | 1 | 444 |
JavaScript | 1 | 11 | 8 | 87 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 24.38 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 166 | |
▷ Static methods | 7 | 4.22% |
▷ Public methods | 166 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
26 PNG files occupy 0.35MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/douban.png | 2.46KB | 1.57KB | ▼ 36.28% |
images/synchronizer/wechat/plus.png | 7.79KB | 7.71KB | ▼ 1.07% |
images/synchronizer/wechat/robot.png | 9.42KB | 9.48KB | 0.00% |
images/icons/alipay.png | 0.81KB | 1.02KB | 0.00% |
images/icons/oschina.png | 2.66KB | 1.55KB | ▼ 41.83% |