Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.68ms] Passed 4 tests
Analyzing server-side resources used by [凹凸曼]一键采集微信文章
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 45.06 ▲3.46 |
Dashboard /wp-admin | 3.35 ▲0.01 | 48.84 ▼12.80 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.36 ▲2.87 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 90.46 ▼11.05 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.45 ▲2.26 |
settings /wp-admin/options-general.php?page=apoyl-grabweixin-settings | 3.25 | 40.98 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
apoyl-grabweixin-settings |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for [凹凸曼]一键采集微信文章
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲32 | 14.67 ▲0.46 | 1.62 ▲0.02 | 37.33 ▼5.97 |
Dashboard /wp-admin | 2,199 ▲18 | 5.58 ▼0.09 | 89.99 ▼24.48 | 42.06 ▼1.53 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.07 | 39.32 ▼0.35 | 36.72 ▲1.97 |
Add New Post /wp-admin/post-new.php | 6,237 ▲4,707 | 26.08 ▲3.01 | 832.36 ▲205.25 | 57.21 ▲7.55 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.17 ▼0.03 | 95.70 ▼2.62 | 40.83 ▼0.63 |
settings /wp-admin/options-general.php?page=apoyl-grabweixin-settings | 841 | 1.99 | 30.02 | 34.72 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apoyl-grabweixin/admin/partials/setting.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/apoyl-grabweixin/admin/partials/editorsetting.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: weixin
apoyl-grabweixin/apoyl-grabweixin.php 92% from 13 tests
"[凹凸曼]一键采集微信文章" version 1.6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 152 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin358 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 88 | 134 | 355 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
A short 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.17 |
Average class complexity | 2.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 22 | 78.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 21.43% |
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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin