93% falang-q-importer

Code Review | Falang Q Importer

WordPress plugin Falang Q Importer scored 93% from 54 tests.

About plugin

  • Plugin page: falang-q-importer
  • Plugin version: 1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.7
  • WordPress version: 5.8.1
  • First release: May 19, 2020
  • Latest release: Apr 19, 2021
  • Number of updates: 9
  • Update frequency: every 37.2 days
  • Top authors: sbouey (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 531 total downloads

Benchmarks

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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼141.96ms] Passed 4 tests

An overview of server-side resources used by Falang Q Importer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1836.13 ▲14.58
Dashboard /wp-admin3.12 ▲0.0737.41 ▼7.85
Posts /wp-admin/edit.php3.18 ▲0.0742.13 ▲2.05
Add New Post /wp-admin/post-new.php5.48 ▲0.0585.24 ▼563.42
Media Library /wp-admin/upload.php3.07 ▲0.0734.13 ▲1.37

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Falang Q Importer: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲7316.44 ▲0.847.84 ▼2.3447.11 ▲0.15
Dashboard /wp-admin2,970 ▲335.89 ▼0.06136.65 ▼10.34105.01 ▼13.90
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0163.46 ▼5.6990.93 ▼5.35
Add New Post /wp-admin/post-new.php1,498 ▼11718.80 ▼2.65349.43 ▲60.31108.16 ▲4.10
Media Library /wp-admin/upload.php1,810 ▲35.04 ▲0.03155.59 ▲4.62122.18 ▲8.79

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/falang-q-importer/falang-q-importer.php:31

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid URI found ("")
The official readme.txt is a good inspiration

falang-q-importer/falang-q-importer.php 85% from 13 tests

This is the main PHP file of "Falang Q Importer" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin343 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16543343

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity72.00
▷ Minimum class complexity72.00
▷ Maximum class complexity72.00
Average method complexity7.45
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin