84% advance-custom-import-and-export

Code Review | Advance Custom Import and Export

WordPress plugin Advance Custom Import and Export scored84%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: 6.3.1
  • 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

40+ active /3,245 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.11MB] [CPU: ▼0.34ms] Passed 4 tests

An overview of server-side resources used by Advance Custom Import and Export
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1043.47 ▲0.63
Dashboard /wp-admin3.42 ▲0.1145.94 ▼2.96
Posts /wp-admin/edit.php3.53 ▲0.1751.53 ▲4.97
Add New Post /wp-admin/post-new.php6.02 ▲0.1398.68 ▼1.50
Media Library /wp-admin/upload.php3.34 ▲0.1135.93 ▲2.49
Acix Tools /wp-admin/admin.php?page=acix_main3.3130.33
Settings /wp-admin/admin.php?page=acix_settings3.3132.58
Export /wp-admin/admin.php?page=acix_export3.3133.17
Import /wp-admin/admin.php?page=acix_import3.3132.07

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Advance Custom Import and Export
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲12313.32 ▼1.051.93 ▲0.1438.45 ▼1.66
Dashboard /wp-admin2,247 ▲655.06 ▲0.15111.02 ▲8.2076.81 ▲30.30
Posts /wp-admin/edit.php2,143 ▲542.46 ▲0.4437.63 ▼5.6834.34 ▼1.81
Add New Post /wp-admin/post-new.php1,555 ▲3517.87 ▼5.31672.27 ▲25.5433.78 ▼22.14
Media Library /wp-admin/upload.php1,435 ▲474.30 ▲0.10112.66 ▲1.5449.34 ▲3.23
Acix Tools /wp-admin/admin.php?page=acix_main9161.8630.6631.13
Settings /wp-admin/admin.php?page=acix_settings9371.8626.7227.69
Export /wp-admin/admin.php?page=acix_export8902.1535.0130.65
Import /wp-admin/admin.php?page=acix_import9382.1932.5935.10

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 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 smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: export, backcups, import

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

"Advance Custom Import and Export" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 146 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("advance-custom-import-and-export.php" instead of "initalize.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
There were no executable files found in this plugin972 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP825771849
CSS211089
JavaScript18534

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
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
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods2395.83%
▷ Protected methods00.00%
▷ Private methods14.17%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ 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.08MB 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-6.png55.55KB29.73KB▼ 46.49%
images/icon.png1.13KB0.43KB▼ 62.22%
images/collapse.png0.32KB0.35KB0.00%
assets/screenshot-5.png7.92KB4.01KB▼ 49.35%