89% postpage-import-export-with-custom-fields-taxonomies

Code Review | Post/Page Copying Tool to Export and Import post/page for Cross site Migration

WordPress plugin Post/Page Copying Tool to Export and Import post/page for Cross site Migration scored89%from 54 tests.

About plugin

  • Plugin page: postpage-import-e...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 29, 2022
  • Latest release: Sep 21, 2023
  • Number of updates: 16
  • Update frequency: every 34.1 days
  • Top authors: wpspin (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /661 total downloads

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.53ms] Passed 4 tests

Server-side resources used by Post/Page Copying Tool to Export and Import post/page for Cross site Migration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0740.02 ▲1.77
Dashboard /wp-admin3.37 ▲0.0746.27 ▼8.20
Posts /wp-admin/edit.php3.49 ▲0.1352.45 ▲2.38
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.70 ▼3.46
Media Library /wp-admin/upload.php3.30 ▲0.0635.16 ▼0.24

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post/Page Copying Tool to Export and Import post/page for Cross site Migration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲6113.19 ▼1.561.71 ▼0.0944.33 ▲0.63
Dashboard /wp-admin2,213 ▲255.87 ▼0.19110.87 ▲6.5942.67 ▲0.31
Posts /wp-admin/edit.php2,096 ▲42.02 ▼0.0240.64 ▼3.1435.88 ▼3.16
Add New Post /wp-admin/post-new.php6,228 ▲4,71425.88 ▲8.43884.92 ▲275.7957.64 ▲1.09
Media Library /wp-admin/upload.php1,398 ▲164.23 ▼0.1594.62 ▼5.1042.90 ▼1.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
No output text or server-side errors detected 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, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
The official readme.txt might help

postpage-import-export-with-custom-fields-taxonomies/wpx-pp-import-export.php 69% from 13 tests

Analyzing the main PHP file in "Post/Page Copying Tool to Export and Import post/page for Cross site Migration" version 1.3.0
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 317 characters long)
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("postpage-import-export-with-custom-fields-taxonomies.php" instead of "wpx-pp-import-export.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected421 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP452217362
JavaScript123631
CSS10028

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity39.50
▷ Minimum class complexity6.00
▷ Maximum class complexity73.00
Average method complexity6.50
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods17.14%
▷ Public methods1392.86%
▷ Protected methods00.00%
▷ Private methods17.14%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin