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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.82ms] Passed 4 tests
An overview of server-side resources used by PChome 新聞台搬家匯入工具
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.45 ▼0.56 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.12 ▼7.24 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.66 ▼4.88 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.40 ▼10.61 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.22 ▲0.17 |
PChome 文章匯入工具設定 /wp-admin/admin.php?page=mxp-pchome2wp | 3.30 | 37.95 |
文章匯入工具 /wp-admin/admin.php?page=mxp-pchome2wp-options | 3.25 | 33.29 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_mxp_pchome_post_log |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
mxp_pchome2wp_db_version |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by PChome 新聞台搬家匯入工具
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲106 | 13.62 ▼0.94 | 1.99 ▲0.11 | 41.81 ▼3.42 |
Dashboard /wp-admin | 2,236 ▲45 | 4.86 ▼0.12 | 104.33 ▲0.19 | 45.50 ▼0.47 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.04 ▲0.03 | 35.48 ▼5.32 | 40.40 ▲3.07 |
Add New Post /wp-admin/post-new.php | 1,542 ▲21 | 23.26 ▲0.05 | 716.23 ▲63.70 | 71.55 ▲10.47 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.29 ▲0.04 | 105.04 ▼11.79 | 54.12 ▲5.78 |
PChome 文章匯入工具設定 /wp-admin/admin.php?page=mxp-pchome2wp | 1,004 | 1.86 | 24.02 | 101.33 |
文章匯入工具 /wp-admin/admin.php?page=mxp-pchome2wp-options | 685 | 1.35 | 7.24 | 38.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: mxptw, pchome2wp, pchome
mxp-pchome2wp/index.php 92% from 13 tests
The main PHP script in "PChome 新聞台搬家匯入工具" version 1.0.7 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mxp-pchome2wp.php" instead of "index.php")
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
Everything looks great! No dangerous files found in this plugin891 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 36 | 54 | 843 |
JavaScript | 1 | 1 | 0 | 48 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 37.50 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 14 | 42.42% |
▷ Public methods | 29 | 87.88% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 12.12% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin