72% advanced-import

Code Review | Advanced Import : One Click Import for WordPress or Theme Demo Data

WordPress plugin Advanced Import : One Click Import for WordPress or Theme Demo Data scored72%from 54 tests.

About plugin

  • Plugin page: advanced-import
  • Plugin version: 1.4.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 26, 2019
  • Latest release: Apr 6, 2023
  • Number of updates: 34
  • Update frequency: every 37.9 days
  • Top authors: addonspress (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

80,000+ active /959,425 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.55MB] [CPU: ▲8.13ms] Passed 4 tests

Analyzing server-side resources used by Advanced Import : One Click Import for WordPress or Theme Demo Data
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /69.35 ▲65.8413,657,492.46 ▲13,657,451.92
Dashboard /wp-admin3.94 ▲0.5991.77 ▲40.16
Posts /wp-admin/edit.php3.97 ▲0.5753.65 ▼3.53
Add New Post /wp-admin/post-new.php6.44 ▲0.5195.01 ▼12.97
Media Library /wp-admin/upload.php3.78 ▲0.5145.57 ▲8.84
Advanced Import /wp-admin/tools.php?page=advanced-import-tool3.7944.33
Demo Import /wp-admin/themes.php?page=advanced-import3.7944.55

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
advanced_import_settings_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
agent_d045983d122a96f235928702675643f8

Browser metrics Passed 4 tests

An overview of browser requirements for Advanced Import : One Click Import for WordPress or Theme Demo Data
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.72 ▲0.381.90 ▲0.3545.22 ▲3.25
Dashboard /wp-admin2,203 ▲265.59 ▼0.0389.24 ▼2.7745.75 ▲1.21
Posts /wp-admin/edit.php2,108 ▲81.95 ▼0.0236.34 ▼4.6533.64 ▼3.42
Add New Post /wp-admin/post-new.php1,543 ▲1718.08 ▼5.25667.28 ▲45.5166.69 ▲8.17
Media Library /wp-admin/upload.php1,408 ▲84.18 ▲0.01105.23 ▼7.3544.36 ▼2.34
Advanced Import /wp-admin/tools.php?page=advanced-import-tool1,1883.4644.4031.27
Demo Import /wp-admin/themes.php?page=advanced-import1,1873.5045.4428.44

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
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • agent_d045983d122a96f235928702675643f8
    • can_compress_scripts
    • theysaidso_admin_options
    • advanced_import_settings_options
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 25 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=advanced-import
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 25 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=advanced-import
    • > POST request to /wp-cron.php?doing_wp_cron=1697551793.8827230930328369140625
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/advanced-import/advanced-import.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-import/example.php:83

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: import, advanced import, customizer import, theme import, widget import...

advanced-import/advanced-import.php Passed 13 tests

The main file in "Advanced Import : One Click Import for WordPress or Theme Demo Data" v. 1.4.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
71 characters long description:
Easily import demo data starter site packages or Migrate your site data

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin4,961 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP185831,3922,886
JavaScript45072262,074
CSS1001

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 104)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity41.77
▷ Minimum class complexity1.00
▷ Maximum class complexity385.00
Average method complexity5.86
▷ Minimum method complexity1.00
▷ Maximum method complexity104.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods109
▷ Static methods87.34%
▷ Public methods8275.23%
▷ Protected methods00.00%
▷ Private methods2724.77%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected