90% dokan-wpml

Code Review | Dokan WPML

WordPress plugin Dokan WPML scored90%from 54 tests.

About plugin

  • Plugin page: dokan-wpml
  • Plugin version: 1.0.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Feb 27, 2017
  • Latest release: Jun 8, 2023
  • Number of updates: 15
  • Update frequency: every 152.7 days
  • Top authors: sabbir1991 (53.33%)alamgircsebd (40%)tareq1988 (20%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /13,556 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by Dokan WPML
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.79 ▼2.44
Dashboard /wp-admin3.31 ▲0.0048.58 ▼8.97
Posts /wp-admin/edit.php3.36 ▲0.0047.67 ▼5.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.36 ▼21.97
Media Library /wp-admin/upload.php3.23 ▲0.0037.96 ▼0.35

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Dokan WPML: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.25 ▼0.212.27 ▲0.5452.39 ▲11.06
Dashboard /wp-admin2,195 ▲155.61 ▼0.0385.94 ▼4.5139.17 ▼6.83
Posts /wp-admin/edit.php2,103 ▼01.98 ▼0.0036.97 ▼8.4535.93 ▲1.52
Add New Post /wp-admin/post-new.php1,526 ▼023.13 ▼0.18632.52 ▼82.0348.65 ▼8.84
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.06112.63 ▼0.1843.01 ▼3.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: translation, i18n, l10n, dokan, wpml

dokan-wpml/dokan-wpml.php 92% from 13 tests

The primary PHP file in "Dokan WPML" version 1.0.8 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.4.0" instead of "5.5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected333 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1106285333

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.34
Average class complexity55.00
▷ Minimum class complexity55.00
▷ Maximum class complexity55.00
Average method complexity2.81
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods29
▷ Static methods310.34%
▷ Public methods2896.55%
▷ Protected methods00.00%
▷ Private methods13.45%
Functions4
▷ Named functions125.00%
▷ Anonymous functions375.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
No PNG files were detected