Benchmarks
Plugin footprint 65% 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.01MB] [CPU: ▼4.86ms] Passed 4 tests
Server-side resources used by WP Weixin Broadcast
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.32 ▼9.03 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.57 ▼9.66 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 45.51 ▼0.03 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 94.62 ▲0.06 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 31.84 ▼0.71 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 98 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wp_weixin_broadcast_message_logs |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
wp_weixin_broadcast_plugin_version |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Weixin Broadcast
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.31 ▼0.99 | 3.96 ▲1.81 | 41.64 ▼2.10 |
Dashboard /wp-admin | 2,203 ▲12 | 4.83 ▼0.06 | 107.25 ▼1.60 | 40.41 ▼5.53 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.04 ▲0.01 | 39.04 ▼1.00 | 35.26 ▼0.11 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 18.28 ▲0.68 | 594.96 ▼85.19 | 57.65 ▲2.81 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.22 ▲0.06 | 96.60 ▼5.95 | 42.27 ▼0.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (The main settings to integrate WordPress with WeChat.) image not found
wp-weixin-broadcast/wp-weixin-broadcast.php Passed 13 tests
The principal PHP file in "WP Weixin Broadcast" v. 1.3.15 is loaded by WordPress automatically on each request
30 characters long description:
WeChat Broadcast for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected11,452 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 64 | 1,536 | 443 | 5,818 |
PHP | 20 | 684 | 104 | 3,091 |
CSS | 4 | 223 | 13 | 1,323 |
Markdown | 1 | 206 | 0 | 687 |
PO File | 1 | 204 | 230 | 533 |
PHP code Passed 2 tests
This is a very shot 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.36 |
Average class complexity | 95.50 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 214.00 |
Average method complexity | 4.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 113 | |
▷ Static methods | 14 | 12.39% |
▷ Public methods | 75 | 66.37% |
▷ Protected methods | 38 | 33.63% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 3 | 42.86% |
▷ Class constants | 4 | 57.14% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/placeholder-preview-thumb.png | 0.72KB | 0.49KB | ▼ 32.79% |
images/placeholder-deleted-thumb.png | 1.25KB | 0.71KB | ▼ 43.74% |
images/placeholder-preview-full.png | 1.79KB | 0.88KB | ▼ 50.71% |
images/wp-weixin-broadcast-cover-placeholder.png | 5.88KB | 2.41KB | ▼ 59.09% |
images/placeholder-deleted-full.png | 3.27KB | 1.51KB | ▼ 53.97% |