Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.27MB] [CPU: ▲0.35ms] Passed 4 tests
Analyzing server-side resources used by Dokan Migrator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 41.22 ▲1.35 |
Dashboard /wp-admin | 3.61 ▲0.31 | 44.79 ▼5.10 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 50.07 ▲4.52 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 95.86 ▲4.92 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 37.71 ▲0.61 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 8 new options
New WordPress options |
---|
dokan_migrator_plugin_version |
widget_recent-comments |
dokan_migrator_installed_time |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Dokan Migrator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.06 | 1.79 ▲0.03 | 44.12 ▼5.65 |
Dashboard /wp-admin | 2,206 ▲21 | 5.85 ▲0.03 | 101.89 ▲0.18 | 40.40 ▼5.49 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.05 | 39.49 ▲1.73 | 36.96 ▲5.71 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.40 ▲0.17 | 648.49 ▼31.50 | 52.37 ▼9.92 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.16 ▼0.01 | 95.71 ▼7.49 | 42.82 ▼0.63 |
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
You still need to fix the following
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_recent-comments
- dokan_migrator_installed_time
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- dokan_migrator_plugin_version
Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'wp-content/plugins/dokan-migrator/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/dokan-migrator/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/dokan-migrator/templates/app.php:2
- > PHP Warning
require_once(wp-content/plugins/dokan-migrator/vendor/appsero/client/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/dokan-migrator/vendor/appsero/client/.php-cs-fixer.dist.php on line 3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: multivendor marketplace, dokan, dokan migrator
dokan-migrator/dokan-migrator.php 92% from 13 tests
The principal PHP file in "Dokan Migrator" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Requires at least: Required version does not match the one declared in readme.txt ("5.8" instead of "3.0")
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
Success! There were no dangerous files found in this plugin4,348 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 37 | 954 | 2,609 | 3,818 |
Markdown | 1 | 82 | 0 | 255 |
JSON | 3 | 0 | 0 | 145 |
XML | 1 | 6 | 11 | 95 |
YAML | 1 | 6 | 0 | 32 |
CSS | 1 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 16.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 86.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 4 | 15.38% |
▷ Concrete classes | 22 | 84.62% |
▷ Final classes | 1 | 4.55% |
Methods | 291 | |
▷ Static methods | 44 | 15.12% |
▷ Public methods | 248 | 85.22% |
▷ Protected methods | 10 | 3.44% |
▷ Private methods | 33 | 11.34% |
Functions | 10 | |
▷ Named functions | 1 | 10.00% |
▷ Anonymous functions | 9 | 90.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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