83% multilingual-import

Code Review | Multilingual Import

WordPress plugin Multilingual Import scored83%from 54 tests.

About plugin

  • Plugin page: multilingual-import
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 29, 2015
  • Latest release: Nov 6, 2015
  • Number of updates: 5
  • Update frequency: every 1.6 days
  • Top authors: bartdag-resulto (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /967 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼2.23ms] Passed 4 tests

An overview of server-side resources used by Multilingual Import
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.09 ▲1.48
Dashboard /wp-admin3.33 ▲0.0250.56 ▼3.76
Posts /wp-admin/edit.php3.44 ▲0.0851.64 ▲4.08
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.41 ▼8.41
Media Library /wp-admin/upload.php3.25 ▲0.0236.85 ▲1.76

Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multilingual Import
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲4814.36 ▼0.231.80 ▲0.0744.87 ▲1.60
Dashboard /wp-admin2,212 ▲385.62 ▲0.0997.30 ▼4.3042.27 ▼0.53
Posts /wp-admin/edit.php2,121 ▲212.04 ▲0.0937.42 ▲3.4233.69 ▼2.70
Add New Post /wp-admin/post-new.php1,543 ▲1523.32 ▲0.23684.06 ▲4.3757.74 ▲3.17
Media Library /wp-admin/upload.php1,414 ▲174.23 ▲0.0298.75 ▼11.4241.90 ▼5.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 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 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
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/multilingual-import/rapid-addon.php on line 975
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/multilingual-import/rapid-addon.php on line 975
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/multilingual-import/rapid-addon.php on line 975
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_plugin_active() in wp-content/plugins/multilingual-import/rapid-addon.php:977

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires at least: Invalid plugin version format
  • Screenshots: Add an image for screenshot #1 (The section to fill when creating an import. The Entry Language is the)
The official readme.txt is a good inspiration

multilingual-import/wp-multilingual-import.php 92% from 13 tests

This is the main PHP file of "Multilingual Import" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("multilingual-import.php" instead of "wp-multilingual-import.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin807 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP226593807

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.58
Average class complexity134.00
▷ Minimum class complexity134.00
▷ Maximum class complexity134.00
Average method complexity4.41
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods39
▷ Static methods00.00%
▷ Public methods39100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png36.88KB10.20KB▼ 72.34%