94% advance-custom-import-and-export

Code Review | Advance Custom Import and Export

WordPress plugin Advance Custom Import and Export scored 94% from 54 tests.

About plugin

  • Plugin page: advance-custom-im...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-4.7.0
  • WordPress version: 5.9.2
  • First release: Jan 5, 2016
  • Latest release: Jan 13, 2016
  • Number of updates: 23
  • Update frequency: every 14.8 days
  • Top authors: khctechnologies (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active / 3,014 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼293.40ms] Passed 4 tests

Server-side resources used by Advance Custom Import and Export
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0853.55 ▲1.49
Dashboard /wp-admin3.45 ▲0.0432.72 ▼0.81
Posts /wp-admin/edit.php3.67 ▲0.0344.18 ▲6.53
Add New Post /wp-admin/post-new.php6.92 ▼0.0597.10 ▼1,170.91
Media Library /wp-admin/upload.php3.32 ▲0.0222.54 ▼3.38
Export /wp-admin/admin.php?page=acix_export3.3322.12
Import /wp-admin/admin.php?page=acix_import3.3323.99
Acix Tools /wp-admin/admin.php?page=acix_main3.3321.14
Settings /wp-admin/admin.php?page=acix_settings3.3221.89

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Advance Custom Import and Export
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,821 ▲7716.04 ▲0.276.70 ▲0.412.16 ▼0.36
Dashboard /wp-admin2,949 ▲956.23 ▲0.07115.85 ▼14.78168.41 ▲9.15
Posts /wp-admin/edit.php2,720 ▲293.25 ▲0.0169.48 ▲6.13141.48 ▲0.43
Add New Post /wp-admin/post-new.php1,698 ▲3716.19 ▼0.10392.88 ▼19.31157.32 ▲4.34
Media Library /wp-admin/upload.php1,754 ▲565.62 ▲0.08119.84 ▼25.16198.94 ▲3.62
Export /wp-admin/admin.php?page=acix_export1,1493.0959.34137.75
Import /wp-admin/admin.php?page=acix_import1,1963.0957.93147.30
Acix Tools /wp-admin/admin.php?page=acix_main1,1822.8453.33115.62
Settings /wp-admin/admin.php?page=acix_settings1,1792.8055.94138.78

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/advance-custom-import-and-export/initalize.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


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
3 plugin tags: import, backcups, export

advance-custom-import-and-export/initalize.php 85% from 13 tests

Analyzing the main PHP file in "Advance Custom Import and Export" version 1.0
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 ("advance-custom-import-and-export.php" instead of "initalize.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin972 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity74.00
▷ Minimum class complexity74.00
▷ Maximum class complexity74.00
Average method complexity4.04
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2395.83%
▷ Protected methods00.00%
▷ Private methods14.17%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
10 PNG files occupy 0.19MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png36.38KB19.82KB▼ 45.54%
assets/screenshot-1.png15.29KB7.29KB▼ 52.31%
assets/screenshot-2.png41.04KB20.82KB▼ 49.27%
assets/screenshot-7.png16.20KB8.17KB▼ 49.57%