94% dwqa-migration

Code Review | DWQA Migration

WordPress plugin DWQA Migration scored 94% from 54 tests.

About plugin

  • Plugin page: dwqa-migration
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 5.9.2
  • First release: Oct 29, 2018
  • Latest release: Nov 23, 2018
  • Number of updates: 5
  • Update frequency: every 5.6 days
  • Top authors: designwall (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 964 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.54MB] [CPU: ▼296.26ms] Passed 4 tests

A check of server-side resources used by DWQA Migration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.5861.27 ▲5.31
Dashboard /wp-admin3.94 ▲0.5349.63 ▲10.20
Posts /wp-admin/edit.php4.22 ▲0.5846.09 ▲8.09
Add New Post /wp-admin/post-new.php7.47 ▲0.4999.51 ▼1,196.26
Media Library /wp-admin/upload.php3.88 ▲0.5828.25 ▼2.19

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for DWQA Migration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲6816.27 ▲0.325.87 ▼0.222.35 ▼0.02
Dashboard /wp-admin2,912 ▲516.01 ▼0.28148.96 ▲12.72189.02 ▲30.66
Posts /wp-admin/edit.php2,716 ▲253.25 ▲0.0263.09 ▼0.43141.22 ▲0.60
Add New Post /wp-admin/post-new.php1,707 ▲1119.20 ▼1.78408.61 ▼45.84163.61 ▼0.13
Media Library /wp-admin/upload.php1,725 ▲245.56 ▲0.01139.43 ▲0.45187.10 ▲4.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      Use of undefined constant CDWQA_DIR - assumed 'CDWQA_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/dwqa-migration/Includes/Main.php on line 5
    • > PHP Fatal error
      require_once(): Failed opening required 'CDWQA_DIR/Libraries/cdwqa-db.php' (include_path='.:/usr/share/php') in wp-content/plugins/dwqa-migration/Includes/Main.php on line 5
    • > PHP Warning
      require_once(CDWQA_DIR/Libraries/cdwqa-db.php): failed to open stream: No such file or directory in wp-content/plugins/dwqa-migration/Includes/Main.php on line 5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: wordpress backup, backup, wordpress move, migrate, clone...

dwqa-migration/converter.php 85% from 13 tests

The main file in "DWQA Migration" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("dwqa-migration.php" instead of "converter.php")

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
No dangerous file extensions were detected3,375 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP67863423,001
JavaScript12929204
CSS1362170

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity73.60
▷ Minimum class complexity2.00
▷ Maximum class complexity147.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods165
▷ Static methods21.21%
▷ Public methods15593.94%
▷ Protected methods00.00%
▷ Private methods106.06%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
PNG images were not found in this plugin