84% astra-import-export

Code Review | Import / Export Customizer Settings

WordPress plugin Import / Export Customizer Settings scored84%from 54 tests.

About plugin

  • Plugin page: astra-import-export
  • Plugin version: 1.0.7
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Mar 25, 2019
  • Latest release: Aug 21, 2023
  • Number of updates: 26
  • Update frequency: every 62.2 days
  • Top authors: brainstormworg (73.08%)Nikschavan (19.23%)patilvikasj (15.38%)

Code review

54 tests

User reviews

4 reviews

Install metrics

90,000+ active /868,224 total downloads


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.13MB] [CPU: ▼16.70ms] Passed 4 tests

Server-side resources used by Import / Export Customizer Settings
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▼0.0439.81 ▼16.15
Dashboard /wp-admin3.31 ▲0.0050.37 ▼17.72
Posts /wp-admin/edit.php3.36 ▼0.4951.48 ▼18.30
Add New Post /wp-admin/post-new.php5.89 ▼0.0093.90 ▼14.61
Media Library /wp-admin/upload.php3.23 ▼0.0036.38 ▼0.89

Server storage [IO: ▲0.03MB] [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: 17 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Import / Export Customizer Settings
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.441.86 ▼0.1438.70 ▼5.24
Dashboard /wp-admin2,195 ▲185.59 ▼0.0692.21 ▲2.0037.85 ▼6.23
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0240.31 ▼6.2237.00 ▼1.78
Add New Post /wp-admin/post-new.php1,526 ▼023.04 ▼0.19618.48 ▼85.8349.41 ▼5.01
Media Library /wp-admin/upload.php1,403 ▲34.23 ▲0.0399.81 ▼13.4144.12 ▲1.70

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
The following issues need your attention
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      require_once(): Failed opening required 'ASTRA_IMPORT_EXPORT_DIRinc/classes/class-astra-import-export-loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/astra-import-export/inc/class-astra-import-export.php on line 41
    • > PHP Warning
      require_once(ASTRA_IMPORT_EXPORT_DIRinc/classes/class-astra-import-export-loader.php): failed to open stream: No such file or directory in wp-content/plugins/astra-import-export/inc/class-astra-import-export.php on line 41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/astra-import-export/inc/classes/class-astra-import-export-loader.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_template() in wp-content/plugins/astra-import-export/astra-import-export.php:14
    • > PHP Warning
      Use of undefined constant ASTRA_IMPORT_EXPORT_DIR - assumed 'ASTRA_IMPORT_EXPORT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/astra-import-export/inc/class-astra-import-export.php on line 41

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: The official readme.txt might help

astra-import-export/astra-import-export.php Passed 13 tests

"Import / Export Customizer Settings" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
106 characters long description:
This plugin is an add-on for the Astra WordPress Theme. It will help in Import Export Customizer settings.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected365 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity20.00
▷ Minimum class complexity2.00
▷ Maximum class complexity38.00
Average method complexity4.80
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods440.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants5100.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 images were found in this plugin