94% access-demo-importer

Code Review | Access Demo Importer

WordPress plugin Access Demo Importer scored 94% from 54 tests.

About plugin

  • Plugin page: access-demo-importer
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-5.9
  • WordPress version: 5.9.2
  • First release: Jul 28, 2019
  • Latest release: Jan 31, 2022
  • Number of updates: 13
  • Update frequency: every 70.8 days
  • Top authors: Access Keys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active / 205,367 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼314.67ms] 75% from 4 tests

Analyzing server-side resources used by Access Demo Importer
Please take the time to fix the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 3,433.92ms on /wp-admin/themes.php?page=demo-importer)
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0953.06 ▲1.09
Dashboard /wp-admin3.46 ▲0.0532.24 ▼1.01
Posts /wp-admin/edit.php3.68 ▲0.0536.53 ▲1.38
Add New Post /wp-admin/post-new.php6.93 ▼0.0493.69 ▼1,248.60
Media Library /wp-admin/upload.php3.34 ▲0.0422.94 ▼10.15
Install Demos /wp-admin/themes.php?page=demo-importer3.473,433.92

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Access Demo Importer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,814 ▲6015.89 ▼0.176.60 ▲0.901.92 ▼1.37
Dashboard /wp-admin2,919 ▲586.16 ▼0.02115.07 ▼18.29155.67 ▼1.99
Posts /wp-admin/edit.php2,722 ▲313.24 ▲0.0061.34 ▼3.38139.96 ▼2.01
Add New Post /wp-admin/post-new.php1,687 ▼2418.25 ▼2.51387.14 ▼2.41150.10 ▼6.69
Media Library /wp-admin/upload.php1,729 ▲315.53 ▲0.04158.09 ▲23.41182.31 ▼4.86
Install Demos /wp-admin/themes.php?page=demo-importer1,1283.0455.60135.36

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/access-demo-importer/inc/importers/customizer-settings.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


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: widgets, demo, import, content, theme options...

access-demo-importer/access-demo-importer.php 92% from 13 tests

The main PHP script in "Access Demo Importer" version 1.0.9 is automatically included on every request by WordPress
It is important to fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected4,099 lines of code in 12 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
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity49.00
▷ Minimum class complexity1.00
▷ Maximum class complexity214.00
Average method complexity6.94
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes12100.00%
▷ Final classes18.33%
▷ Static methods1111.34%
▷ Public methods8991.75%
▷ Protected methods33.09%
▷ Private methods55.15%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants8100.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
There are no PNG files in this plugin