83% falang-q-importer

Code Review | Falang Q Importer

WordPress plugin Falang Q Importer scored83%from 54 tests.

About plugin

  • Plugin page: falang-q-importer
  • Plugin version: 1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: May 19, 2020
  • Latest release: Jun 1, 2022
  • Number of updates: 11
  • Update frequency: every 67.6 days
  • Top authors: sbouey (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

30+ active /2,542 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼6.84ms] 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 /3.53 ▲0.0739.09 ▲0.56
Dashboard /wp-admin3.37 ▲0.0347.83 ▼12.97
Posts /wp-admin/edit.php3.42 ▲0.0749.57 ▲0.86
Add New Post /wp-admin/post-new.php5.95 ▲0.0786.45 ▼15.80
Media Library /wp-admin/upload.php3.30 ▲0.0738.83 ▲1.61

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, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

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 /2,814 ▲5314.69 ▲0.342.00 ▲0.3141.73 ▼0.28
Dashboard /wp-admin2,192 ▲115.52 ▼0.2088.75 ▼9.1140.01 ▼1.47
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0138.50 ▲1.4036.17 ▼1.43
Add New Post /wp-admin/post-new.php1,526 ▼023.12 ▼0.36668.56 ▼10.8255.77 ▲0.77
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.0294.15 ▼0.4240.28 ▼2.94

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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 ("www.faboba.com/falangw/")
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.7, 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