Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.78ms] Passed 4 tests
An overview of server-side resources used by [凹凸曼]微信分享有图-WeChat Page Sharing
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 2,410.55 ▲2,370.46 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.61 ▼12.09 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 48.68 ▲1.73 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 93.74 ▲1.93 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.53 ▼2.68 |
settings /wp-admin/options-general.php?page=apoyl-weixinshare-settings | 3.29 | 32.51 |
Server storage [IO: ▲0.07MB] [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: 26 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_apoyl_weixinshare |
New WordPress options |
---|
widget_recent-posts |
apoyl_weixinshare_db_version |
apoyl-weixinshare-settings |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
[凹凸曼]微信分享有图-WeChat Page Sharing: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲137 | 13.78 ▼0.45 | 8.70 ▲6.94 | 35.99 ▼7.63 |
Dashboard /wp-admin | 2,202 ▲28 | 5.60 ▼0.04 | 82.64 ▼5.74 | 35.52 ▼6.18 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.02 | 36.19 ▼3.01 | 37.28 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,529 ▼7 | 23.41 ▲0.28 | 658.17 ▼13.95 | 66.54 ▲15.27 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.15 ▼0.03 | 96.40 ▼29.13 | 41.63 ▼11.44 |
settings /wp-admin/options-general.php?page=apoyl-weixinshare-settings | 977 | 2.15 | 25.52 | 62.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_apoyl_weixinshare
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- apoyl_weixinshare_db_version
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function apoyl_weixinshare_file() in wp-content/plugins/apoyl-weixinshare/public/partials/display.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function apoyl_weixinshare_file() in wp-content/plugins/apoyl-weixinshare/admin/partials/list.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apoyl-weixinshare/admin/partials/setting.php:29
- > PHP Fatal error
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 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Contributors: Please add at least on tag
- Contributors: The plugin contributors field is missing
apoyl-weixinshare/apoyl-weixinshare.php Passed 13 tests
This is the main PHP file of "[凹凸曼]微信分享有图-WeChat Page Sharing" version 2.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
实现文章在微信里分享朋友圈和分享朋友有图标
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin601 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 116 | 170 | 596 |
JavaScript | 3 | 2 | 0 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 5.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 39 | |
▷ Static methods | 4 | 10.26% |
▷ Public methods | 26 | 66.67% |
▷ Protected methods | 1 | 2.56% |
▷ Private methods | 12 | 30.77% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
No PNG images were found in this plugin