84% demo-import-kit

Code Review | Demo Import Kit

WordPress plugin Demo Import Kit scored84%from 54 tests.

About plugin

  • Plugin page: demo-import-kit
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 3, 2020
  • Latest release: Dec 22, 2022
  • Number of updates: 9
  • Update frequency: every 93.5 days
  • Top authors: themeinwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active /98,137 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.46MB] [CPU: ▼0.42ms] Passed 4 tests

An overview of server-side resources used by Demo Import Kit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.99 ▲0.5347.81 ▲4.45
Dashboard /wp-admin3.81 ▲0.4755.04 ▼9.85
Posts /wp-admin/edit.php3.86 ▲0.5157.33 ▲7.84
Add New Post /wp-admin/post-new.php6.33 ▲0.4492.28 ▼4.11
Media Library /wp-admin/upload.php3.67 ▲0.4443.26 ▲8.33
Demo Import Kit /wp-admin/themes.php?page=demo-import-kit3.8036.45

Server storage [IO: ▲0.35MB] [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
can_compress_scripts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Demo Import Kit: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.111.95 ▼0.0544.99 ▲1.36
Dashboard /wp-admin2,210 ▲224.85 ▼0.01116.46 ▲0.2136.22 ▼3.04
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0139.70 ▲2.2235.19 ▼1.81
Add New Post /wp-admin/post-new.php1,536 ▲323.50 ▲0.06694.16 ▲68.1261.89 ▲12.10
Media Library /wp-admin/upload.php1,389 ▼24.25 ▲0.04102.57 ▼2.0545.16 ▼4.19
Demo Import Kit /wp-admin/themes.php?page=demo-import-kit8541.9339.2537.25

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 13× PHP files output text when accessed directly (only 10 are shown):
    • > /wp-content/plugins/demo-import-kit/inc/logger.php
    • > /wp-content/plugins/demo-import-kit/inc/export.php
    • > /wp-content/plugins/demo-import-kit/inc/base.php
    • > /wp-content/plugins/demo-import-kit/inc/importer.php
    • > /wp-content/plugins/demo-import-kit/inc/class-logger-cli.php
    • > /wp-content/plugins/demo-import-kit/inc/class-wxr-importer.php
    • > /wp-content/plugins/demo-import-kit/inc/WXRImporter.php
    • > /wp-content/plugins/demo-import-kit/inc/views.php
    • > /wp-content/plugins/demo-import-kit/inc/widget-importer.php
    • > /wp-content/plugins/demo-import-kit/inc/class-logger.php

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: settings, plugin, theme import, theme options, import...

demo-import-kit/demo-import-kit.php Passed 13 tests

This is the main PHP file of "Demo Import Kit" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
74 characters long description:
The plugin simpally import and export customizer, Widget and content data.

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
Success! There were no dangerous files found in this plugin6,517 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP156921,2633,092
JavaScript35918772,536
CSS105889

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity35.58
▷ Minimum class complexity1.00
▷ Maximum class complexity263.00
Average method complexity5.28
▷ Minimum method complexity1.00
▷ Maximum method complexity39.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes12
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
Methods97
▷ Static methods1414.43%
▷ Public methods5455.67%
▷ Protected methods3334.02%
▷ Private methods1010.31%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants571.43%
▷ Class constants228.57%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/Image/logo.png10.97KB5.58KB▼ 49.10%