83% dokan-access-manager

Code Review | Dokan Access Manager

WordPress plugin Dokan Access Manager scored 83% from 54 tests.

About plugin

  • Plugin page: dokan-access-manager
  • Plugin version: 1.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Apr 11, 2022
  • Latest release: Jul 3, 2023
  • Number of updates: 10
  • Update frequency: every 45.3 days
  • Top authors: onlinerir (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,056 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 successfully, without throwing any errors or notices

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

A check of server-side resources used by Dokan Access Manager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0247.08 ▲8.47
Dashboard /wp-admin3.33 ▲0.0246.73 ▲0.54
Posts /wp-admin/edit.php3.38 ▲0.0246.44 ▼0.53
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.96 ▼3.11
Media Library /wp-admin/upload.php3.25 ▲0.0234.70 ▲2.76

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
dokan_access_manager
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Dokan Access Manager: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.20 ▼1.231.73 ▼0.0942.54 ▼1.33
Dashboard /wp-admin2,206 ▲185.86 ▼0.01110.27 ▲6.0540.55 ▼3.18
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0338.76 ▼1.0535.27 ▼2.62
Add New Post /wp-admin/post-new.php1,534 ▼023.22 ▲0.26596.34 ▼63.2172.67 ▲18.33
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.05110.67 ▲7.1547.30 ▲3.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • dokan_access_manager
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function dokan_get_option() in wp-content/plugins/dokan-access-manager/dokan-templates/orders/details.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots need descriptions #2, #3 in dokan-access-manager/assets to your readme.txt
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

dokan-access-manager/dokan-access-manager.php 85% from 13 tests

The main PHP file in "Dokan Access Manager" ver. 1.6 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages/")
  • Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.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
There were no executable files found in this plugin827 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP12181312827

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity3.19
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods22
▷ Static methods940.91%
▷ Public methods2090.91%
▷ Protected methods00.00%
▷ Private methods29.09%
Functions10
▷ Named functions990.00%
▷ Anonymous functions110.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.30MB with 0.17MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/Settings.png307.44KB118.53KB▼ 61.45%
assets/img/ACCESSMANAGER-LOGO-COLOR-STANDARD_II-300x132-1-e1682845951403.png3.83KB1.92KB▼ 49.86%