Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.62ms] Passed 4 tests
Analyzing server-side resources used by Pixnet 痞客邦部落格搬家匯入工具
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.92 ▼1.71 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.55 ▼0.18 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.38 ▲0.86 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.92 ▼3.17 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 31.50 ▼1.40 |
文章匯入工具 /wp-admin/admin.php?page=mxp-pixnet2wp-options | 3.26 | 29.54 |
Pixnet 文章匯入工具 /wp-admin/admin.php?page=mxp-pixnet2wp | 3.31 | 37.34 |
說明事項 /wp-admin/admin.php?page=mxp-pixnet2wp-readmore | 3.24 | 28.95 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_mxp_pixnet_post_log |
New WordPress options |
---|
mxp_pixnet2wp_db_version |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Pixnet 痞客邦部落格搬家匯入工具
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲60 | 13.23 ▼1.38 | 1.76 ▲0.03 | 38.83 ▼3.67 |
Dashboard /wp-admin | 2,234 ▲42 | 5.83 ▲0.88 | 97.58 ▼12.51 | 45.67 ▲4.64 |
Posts /wp-admin/edit.php | 2,120 ▲45 | 1.99 ▼0.01 | 34.40 ▼1.39 | 41.02 ▲8.72 |
Add New Post /wp-admin/post-new.php | 1,545 ▲31 | 23.20 ▲5.62 | 627.05 ▼23.00 | 44.99 ▼9.78 |
Media Library /wp-admin/upload.php | 1,419 ▲34 | 4.16 ▲0.02 | 92.93 ▼7.10 | 47.87 ▼9.45 |
文章匯入工具 /wp-admin/admin.php?page=mxp-pixnet2wp-options | 689 | 1.14 | 6.59 | 39.45 |
Pixnet 文章匯入工具 /wp-admin/admin.php?page=mxp-pixnet2wp | 1,018 | 1.69 | 23.19 | 80.07 |
說明事項 /wp-admin/admin.php?page=mxp-pixnet2wp-readmore | 927 | 2.02 | 22.15 | 54.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
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, pixnet2wp, pixnet
mxp-pixnet2wp/index.php 92% from 13 tests
The main PHP script in "Pixnet 痞客邦部落格搬家匯入工具" version 2.2.1 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mxp-pixnet2wp.php" instead of "index.php")
Code Analysis Passed 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 detected1,040 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 38 | 85 | 986 |
JavaScript | 1 | 1 | 0 | 54 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 45.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 84.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 41 | |
▷ Static methods | 30 | 73.17% |
▷ Public methods | 37 | 90.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.76% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected