84% quick-demo-import

Code Review | Quick Demo Import

WordPress plugin Quick Demo Import scored84%from 54 tests.

About plugin

  • Plugin page: quick-demo-import
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.0
  • WordPress version: 6.3.1
  • First release: Feb 1, 2022
  • Latest release: Jul 1, 2022
  • Number of updates: 3
  • Update frequency: every 51.3 days
  • Top authors: quickdemoimport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,465 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.03ms] Passed 4 tests

An overview of server-side resources used by Quick Demo Import
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.10 ▼4.96
Dashboard /wp-admin3.33 ▲0.0351.61 ▲1.91
Posts /wp-admin/edit.php3.38 ▲0.0347.84 ▲2.08
Add New Post /wp-admin/post-new.php5.91 ▲0.0385.92 ▼21.68
Media Library /wp-admin/upload.php3.26 ▲0.0332.94 ▲0.61

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 152 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Quick Demo Import
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲8213.17 ▼1.201.48 ▼0.4141.70 ▼5.65
Dashboard /wp-admin2,223 ▲384.87 ▼0.97105.96 ▲5.1239.22 ▼5.95
Posts /wp-admin/edit.php2,109 ▲202.07 ▲0.0540.05 ▲2.7135.22 ▲1.27
Add New Post /wp-admin/post-new.php1,545 ▲3123.49 ▲5.93677.52 ▼9.3759.20 ▲6.42
Media Library /wp-admin/upload.php1,408 ▲204.32 ▲0.0393.23 ▼3.8641.76 ▲0.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
Please fix the following items
  • 100× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/EliasisInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/Installer.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/AttogramInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/CodeIgniterInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/MoodleInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/SyDESInstaller.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/quick-demo-import/vendor/composer/installers/src/Composer/Installers/LithiumInstaller.php:4

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)
There were no browser issues found

Optimizations

Plugin configuration 96% 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
4 plugin tags: one click import, importer, theme demos, demo

quick-demo-import/qdi.php 92% from 13 tests

The main PHP script in "Quick Demo Import" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("quick-demo-import.php" instead of "qdi.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
No dangerous file extensions were detected9,973 lines of code in 146 files:
LanguageFilesBlank linesComment linesLines of code
PHP1331,1941,8945,989
JavaScript85074892,469
CSS4181591,356
JSON100159

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity6.92
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity4.05
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes123
▷ Abstract classes10.81%
▷ Concrete classes12299.19%
▷ Final classes10.82%
Methods245
▷ Static methods7731.43%
▷ Public methods14358.37%
▷ Protected methods3614.69%
▷ Private methods6626.94%
Functions14
▷ Named functions642.86%
▷ Anonymous functions857.14%
Constants12
▷ Global constants866.67%
▷ Class constants433.33%
▷ Public constants4100.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
PNG images were not found in this plugin