89% airi-demo-importer

Code Review | Airi Demo Importer

WordPress plugin Airi Demo Importer scored 89% from 54 tests.

About plugin

  • Plugin page: airi-demo-importer
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Jan 23, 2020
  • Latest release: Jun 23, 2020
  • Number of updates: 7
  • Update frequency: every 22.6 days
  • Top authors: athemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active / 48,847 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼2.80ms] Passed 4 tests

Server-side resources used by Airi Demo Importer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.25 ▼2.71
Dashboard /wp-admin3.31 ▲0.0045.99 ▼0.99
Posts /wp-admin/edit.php3.36 ▲0.0046.23 ▼3.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.40 ▼3.61
Media Library /wp-admin/upload.php3.23 ▲0.0036.09 ▼1.56

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Airi Demo Importer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.22 ▼1.131.73 ▼0.1044.25 ▲4.93
Dashboard /wp-admin2,203 ▲125.84 ▲0.9794.96 ▼8.9941.17 ▲2.23
Posts /wp-admin/edit.php2,089 ▼32.04 ▲0.0436.04 ▲0.2732.30 ▲1.50
Add New Post /wp-admin/post-new.php1,529 ▲918.39 ▼4.39637.74 ▼34.0652.05 ▼10.46
Media Library /wp-admin/upload.php1,382 ▼64.22 ▲0.0195.63 ▼18.5941.09 ▼6.84

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
1 plugin tags: demo content

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

The principal PHP file in "Airi Demo Importer" v. 1.0.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
There were no executable files found in this plugin26,537 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.72MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
demo-content/previews/business2-hero-thumb.png174.79KB65.17KB▼ 62.71%
demo-content/previews/lawyer-hero-thumb.png141.02KB54.63KB▼ 61.26%