Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.64MB] [CPU: ▲0.04ms] Passed 4 tests
Analyzing server-side resources used by MagicPost - WordPress文章管理功能增强插件
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.12 ▲0.66 | 45.04 ▲0.64 |
Dashboard /wp-admin | 3.99 ▲0.68 | 48.76 ▼3.88 |
Posts /wp-admin/edit.php | 4.04 ▲0.68 | 50.13 ▼1.42 |
Add New Post /wp-admin/post-new.php | 6.52 ▲0.63 | 96.56 ▲4.82 |
Media Library /wp-admin/upload.php | 3.85 ▲0.61 | 48.78 ▲11.32 |
Server storage [IO: ▲2.12MB] [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: 54 new files
Database: no new tables, 7 new options
New WordPress options |
---|
category_children |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by MagicPost - WordPress文章管理功能增强插件
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,860 ▲114 | 13.29 ▼0.96 | 1.68 ▼0.27 | 41.59 ▼1.28 |
Dashboard /wp-admin | 2,263 ▲75 | 5.86 ▲0.97 | 106.91 ▼11.45 | 83.31 ▲36.39 |
Posts /wp-admin/edit.php | 2,152 ▲63 | 2.01 ▼0.00 | 37.31 ▼0.78 | 41.40 ▲9.61 |
Add New Post /wp-admin/post-new.php | 6,643 ▲5,129 | 27.67 ▲10.14 | 960.23 ▲274.58 | 80.27 ▲25.20 |
Media Library /wp-admin/upload.php | 1,442 ▲51 | 4.24 ▲0.06 | 99.16 ▲0.49 | 85.67 ▲41.16 |
文章翻译 /wp-admin/admin.php?page=magicpost#/translate | 1,516 | 7.83 | 150.40 | 177.95 |
下载管理 /wp-admin/admin.php?page=magicpost#/download | 1,722 | 8.39 | 134.89 | 139.49 |
定时发布 /wp-admin/admin.php?page=magicpost#/schedule | 1,865 | 8.30 | 127.36 | 155.74 |
文章搬家 /wp-admin/admin.php?page=magicpost#/move | 1,772 | 9.94 | 134.37 | 154.36 |
社交分享 /wp-admin/admin.php?page=magicpost#/share | 1,901 | 8.34 | 125.33 | 159.90 |
插件设置 /wp-admin/admin.php?page=magicpost#/home | 1,532 | 7.28 | 123.51 | 123.10 |
HTML清理 /wp-admin/admin.php?page=magicpost#/clean | 2,500 | 9.80 | 125.48 | 153.07 |
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 did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- category_children
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 5× PHP files output text when accessed directly:
- > /wp-content/plugins/magicpost/inc/download_btn.php
- > /wp-content/plugins/magicpost/inc/widget_download.php
- > /wp-content/plugins/magicpost/index.php
- > /wp-content/plugins/magicpost/inc/download.php
- > /wp-content/plugins/magicpost/inc/action_dialog.php
- 49× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Undefined variable: dl_info in wp-content/plugins/magicpost/inc/download.php on line 40
- > PHP Notice
Undefined variable: cht_cnf in wp-content/plugins/magicpost/inc/action_dialog.php on line 49
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/magicpost/inc/action_dialog.php on line 49
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/magicpost/inc/action_dialog.php on line 99
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/magicpost/inc/meta_box.php on line 49
- > PHP Notice
Undefined variable: remark_info in wp-content/plugins/magicpost/inc/download.php on line 57
- > PHP Notice
Undefined variable: wb_dipp_type_items in wp-content/plugins/magicpost/inc/meta_box.php on line 77
- > PHP Warning
in_array() expects parameter 2 to be array, null given in wp-content/plugins/magicpost/inc/meta_box.php on line 42
- > PHP Notice
Undefined variable: need_login in wp-content/plugins/magicpost/inc/download_btn.php on line 9
- > PHP Notice
Undefined variable: dl_mode in wp-content/plugins/magicpost/inc/meta_box.php on line 115
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: autopost, social widget, downloader, schedule post, auto schedule...
magicpost/index.php 85% from 13 tests
The entry point to "MagicPost - WordPress文章管理功能增强插件" version 1.1.4 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 262 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("magicpost.php" instead of "index.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected4,324 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 697 | 227 | 4,300 |
JavaScript | 17 | 0 | 46 | 16 |
CSS | 3 | 0 | 3 | 4 |
SVG | 1 | 1 | 0 | 3 |
HTML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 136)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 83.70 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 163.00 |
Average method complexity | 7.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 136.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 33 | 27.27% |
▷ Public methods | 120 | 99.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.83% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
8 PNG files occupy 0.35MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/preview/dwq_theme_5.png | 135.34KB | 53.78KB | ▼ 60.26% |
assets/preview/dwq_theme_3.png | 49.40KB | 49.42KB | 0.00% |
assets/preview/dwq_theme_1.png | 51.46KB | 51.47KB | 0.00% |
assets/img/def_cover.png | 0.15KB | 0.15KB | 0.00% |
assets/img/bgi/theme_3.png | 30.07KB | 17.87KB | ▼ 40.56% |