84% directorist-wpml-integration

Code Review | Directorist WPML Integration - Multilingual Directory Solution

WordPress plugin Directorist WPML Integration - Multilingual Directory Solution scored84%from 54 tests.

About plugin

  • Plugin page: directorist-wpml-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 29, 2022
  • Latest release: Jun 29, 2022
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: wpwax (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,946 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼4.18ms] Passed 4 tests

A check of server-side resources used by Directorist WPML Integration - Multilingual Directory Solution
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.66 ▲0.56
Dashboard /wp-admin3.38 ▲0.0744.46 ▼4.73
Posts /wp-admin/edit.php3.49 ▲0.1350.02 ▲4.30
Add New Post /wp-admin/post-new.php5.96 ▲0.0785.80 ▼9.39
Media Library /wp-admin/upload.php3.30 ▲0.0735.05 ▼3.17

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 55 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

Directorist WPML Integration - Multilingual Directory Solution: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.38 ▲0.022.31 ▲0.3443.28 ▼1.15
Dashboard /wp-admin2,195 ▲215.66 ▲0.0290.28 ▼2.1538.41 ▼3.11
Posts /wp-admin/edit.php2,100 ▼01.99 ▼0.0339.25 ▲2.7635.48 ▼4.56
Add New Post /wp-admin/post-new.php1,526 ▼022.89 ▼0.27678.39 ▼5.9755.07 ▲2.04
Media Library /wp-admin/upload.php1,397 ▲34.21 ▼0.0796.94 ▼3.7647.32 ▲0.85

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
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 take a closer look at the following
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Directorist_WPML_Integration\\Controller\\Asset\\AssetEnqueuer' not found in wp-content/plugins/directorist-wpml-integration/app/Controller/Asset/AdminAsset.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Directorist_WPML_Integration\\Utility\\Enqueuer' not found in wp-content/plugins/directorist-wpml-integration/app/Controller/Asset/AssetEnqueuer.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/directorist-wpml-integration/helper/const.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/directorist-wpml-integration/helper/const.php:40
    • > PHP Fatal error
      Uncaught Error: Class 'Directorist_WPML_Integration\\Controller\\Asset\\AssetEnqueuer' not found in wp-content/plugins/directorist-wpml-integration/app/Controller/Asset/PublicAsset.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/directorist-wpml-integration/helper/const.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: wpml, directorist wpml, directory, directorist

directorist-wpml-integration/directorist-wpml-integration.php Passed 13 tests

This is the main PHP file of "Directorist WPML Integration - Multilingual Directory Solution" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
40 characters long description:
WPML integration plugin for Directorist.

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
Everything looks great! No dangerous files found in this plugin2,497 lines of code in 48 files:
LanguageFilesBlank linesComment linesLines of code
PHP285518331,547
JavaScript1089265509
CSS9563279
XML11614162

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity12.05
▷ Minimum class complexity1.00
▷ Maximum class complexity61.00
Average method complexity3.07
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes20
▷ Abstract classes210.00%
▷ Concrete classes1890.00%
▷ Final classes15.56%
Methods109
▷ Static methods1311.93%
▷ Public methods10192.66%
▷ Protected methods65.50%
▷ Private methods21.83%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin