90% mxp-pixnet2wp

Code Review | Pixnet 痞客邦部落格搬家匯入工具

WordPress plugin Pixnet 痞客邦部落格搬家匯入工具 scored 90% from 54 tests.

About plugin

  • Plugin page: mxp-pixnet2wp
  • Plugin version: 2.2.1
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 7, 2018
  • Latest release: May 16, 2023
  • Number of updates: 23
  • Update frequency: every 78.5 days
  • Top authors: mxp (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 2,347 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.92 ▼1.71
Dashboard /wp-admin3.32 ▲0.0244.55 ▼0.18
Posts /wp-admin/edit.php3.37 ▲0.0245.38 ▲0.86
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.92 ▼3.17
Media Library /wp-admin/upload.php3.24 ▲0.0231.50 ▼1.40
文章匯入工具 /wp-admin/admin.php?page=mxp-pixnet2wp-options3.2629.54
Pixnet 文章匯入工具 /wp-admin/admin.php?page=mxp-pixnet2wp3.3137.34
說明事項 /wp-admin/admin.php?page=mxp-pixnet2wp-readmore3.2428.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲6013.23 ▼1.381.76 ▲0.0338.83 ▼3.67
Dashboard /wp-admin2,234 ▲425.83 ▲0.8897.58 ▼12.5145.67 ▲4.64
Posts /wp-admin/edit.php2,120 ▲451.99 ▼0.0134.40 ▼1.3941.02 ▲8.72
Add New Post /wp-admin/post-new.php1,545 ▲3123.20 ▲5.62627.05 ▼23.0044.99 ▼9.78
Media Library /wp-admin/upload.php1,419 ▲344.16 ▲0.0292.93 ▼7.1047.87 ▼9.45
文章匯入工具 /wp-admin/admin.php?page=mxp-pixnet2wp-options6891.146.5939.45
Pixnet 文章匯入工具 /wp-admin/admin.php?page=mxp-pixnet2wp1,0181.6923.1980.07
說明事項 /wp-admin/admin.php?page=mxp-pixnet2wp-readmore9272.0222.1554.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:
LanguageFilesBlank linesComment linesLines of code
PHP83885986
JavaScript11054

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 code0.33
Average class complexity45.00
▷ Minimum class complexity6.00
▷ Maximum class complexity84.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods41
▷ Static methods3073.17%
▷ Public methods3790.24%
▷ Protected methods00.00%
▷ Private methods49.76%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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