Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.33MB] [CPU: ▼3.79ms] Passed 4 tests
Server-side resources used by synchronize wechat
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.35 | 43.43 ▲3.44 |
Dashboard /wp-admin | 3.67 ▲0.37 | 50.25 ▲3.01 |
Posts /wp-admin/edit.php | 3.72 ▲0.37 | 44.74 ▼4.47 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 82.72 ▼16.38 |
Media Library /wp-admin/upload.php | 3.53 ▲0.31 | 36.41 ▲2.69 |
sync_wechat /wp-admin/edit.php?page=sync_wechat-unique-identifier | 3.53 | 32.54 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
access_token |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for synchronize wechat
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.32 ▼1.05 | 4.04 ▲2.41 | 42.83 ▼1.77 |
Dashboard /wp-admin | 2,207 ▲16 | 5.86 ▼0.04 | 97.74 ▼6.22 | 36.93 ▼7.40 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.07 | 39.59 ▲4.10 | 31.51 ▼5.79 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.24 ▲0.21 | 681.70 ▲23.86 | 60.13 ▲5.55 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.20 ▲0.00 | 97.72 ▲0.19 | 40.11 ▼4.11 |
sync_wechat /wp-admin/edit.php?page=sync_wechat-unique-identifier | 1,114 | 2.17 | 42.22 | 27.08 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- access_token
Smoke tests 25% 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)
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/synchronize-wechat/wechat-php-sdk/demo/runtime/access_token_cache.php
- > /wp-content/plugins/synchronize-wechat/wechat-php-sdk/demo/demo-jssdk.php
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Memcached' not found in wp-content/plugins/synchronize-wechat/wechat-php-sdk/demo/snsapi/callback_snsapi_userinfo.php:25
- > PHP Fatal error
Uncaught Error: Class 'Memcached' not found in wp-content/plugins/synchronize-wechat/wechat-php-sdk/demo/demo_message.php:30
- > PHP Fatal error
Uncaught Error: Class 'Memcached' not found in wp-content/plugins/synchronize-wechat/wechat-php-sdk/demo/snsapi/callback_snsapi_base.php:24
- > Not set saveTokenDiy method, jsapi_ticket will be refreshed each time.
- > PHP Fatal error
Uncaught Error: Class 'Home\\Controller\\BaseController' not found in wp-content/plugins/synchronize-wechat/wechat-php-sdk/demo/demo_thinkPHP.php:20
- > Not set getTicketDiy method, jsapi_ticket will be refreshed each time.
- > PHP Fatal error
Uncaught Error: Class 'Memcached' not found in wp-content/plugins/synchronize-wechat/wechat-php-sdk/demo/snsapi/get_url_snsapi_base.php:22
- > PHP Fatal error
Uncaught Error: Class 'Memcached' not found in wp-content/plugins/synchronize-wechat/wechat-php-sdk/demo/index.php:30
- > PHP Fatal error
Uncaught Error: Class 'Memcached' not found in wp-content/plugins/synchronize-wechat/wechat-php-sdk/demo/snsapi/get_url_snsapi_userinfo.php:23
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/edit.php?page=sync_wechat-unique-identifier
- > Network (severe)
wp-content/plugins/synchronize-wechat/css/jquery-ui-1.13.2.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
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
1 plugin tags: wechat
synchronize-wechat/synchronize_wechat.php 92% from 13 tests
This is the main PHP file of "synchronize wechat" version 0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("synchronize-wechat.php" instead of "synchronize_wechat.php")
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
Good job! No executable or dangerous file extensions detected5,092 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 26 | 508 | 2,434 | 4,114 |
Markdown | 2 | 235 | 0 | 881 |
JSON | 2 | 0 | 0 | 52 |
PO File | 1 | 16 | 21 | 44 |
CSS | 1 | 1 | 5 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 48.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 169 | |
▷ Static methods | 11 | 6.51% |
▷ Public methods | 148 | 87.57% |
▷ Protected methods | 16 | 9.47% |
▷ Private methods | 5 | 2.96% |
Functions | 47 | |
▷ Named functions | 30 | 63.83% |
▷ Anonymous functions | 17 | 36.17% |
Constants | 27 | |
▷ Global constants | 24 | 88.89% |
▷ Class constants | 3 | 11.11% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |
css/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
css/images/ui-icons_cc0000_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |