10% simple-database-exportimport-for-migration-or-backup

Code Review | Simple Database Export+Import+Migration

WordPress plugin Simple Database Export+Import+Migration scored10%from 54 tests.

About plugin

  • Plugin page: simple-database-e...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.7
  • WordPress version: 6.3.1
  • First release: Nov 15, 2016
  • Latest release: Dec 24, 2016
  • Number of updates: 10
  • Update frequency: every 12.0 days
  • Top authors: tazotodua (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,317 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/simple-database-exportimport-for-migration-or-backup/index.php+39
    Use of undefined constant version__MLSS - assumed 'version__MLSS' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▲0.05MB] [CPU: ▼6.52ms] Passed 4 tests

This is a short check of server-side resources used by Simple Database Export+Import+Migration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0646.02 ▼2.87
Dashboard /wp-admin3.37 ▲0.0255.45 ▼7.95
Posts /wp-admin/edit.php3.42 ▲0.0652.73 ▲4.06
Add New Post /wp-admin/post-new.php5.95 ▲0.0684.51 ▼18.04
Media Library /wp-admin/upload.php3.29 ▲0.0637.40 ▲2.78
IMPORT_EXPORT_DB /wp-admin/options-general.php?page=sdiem_opts_subpage3.2633.33

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Simple Database Export+Import+Migration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.241.93 ▲0.0642.86 ▼0.47
Dashboard /wp-admin2,202 ▲225.62 ▼0.0287.94 ▼4.9738.85 ▼5.59
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0034.58 ▼3.8635.79 ▲0.68
Add New Post /wp-admin/post-new.php1,551 ▲2023.19 ▼0.02630.29 ▼81.4750.90 ▼5.45
Media Library /wp-admin/upload.php1,407 ▲104.24 ▼0.0297.86 ▼8.6742.50 ▼2.68
IMPORT_EXPORT_DB /wp-admin/options-general.php?page=sdiem_opts_subpage8032.0426.3128.69

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_multisite() in wp-content/plugins/simple-database-exportimport-for-migration-or-backup/index.php:13

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: post views, view counter, postviews, post hits, post counter

simple-database-exportimport-for-migration-or-backup/index.php 92% from 13 tests

Analyzing the main PHP file in "Simple Database Export+Import+Migration" version 1.2
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-database-exportimport-for-migration-or-backup.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin143 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14340143

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions975.00%
▷ Anonymous functions325.00%
Constants3
▷ Global constants3100.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
There were not PNG files found in your plugin