79% database-sync

Code Review | Database Sync

WordPress plugin Database Sync scored 79% from 54 tests.

About plugin

  • Plugin page: database-sync
  • Plugin version: 0.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 13, 2012
  • Latest release: Aug 26, 2015
  • Number of updates: 23
  • Update frequency: every 50.1 days
  • Top authors: tamlyn (100%)

Code review

54 tests

User reviews

23 reviews

Install metrics

700+ active / 25,158 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.73ms] Passed 4 tests

This is a short check of server-side resources used by Database Sync
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.38 ▼4.51
Dashboard /wp-admin3.37 ▲0.0647.93 ▼3.18
Posts /wp-admin/edit.php3.42 ▲0.0647.62 ▼1.54
Add New Post /wp-admin/post-new.php5.95 ▲0.0696.49 ▲8.34
Media Library /wp-admin/upload.php3.29 ▲0.0636.24 ▲2.31
Database Sync /wp-admin/tools.php?page=dbs_options3.2637.05

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

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

Browser metrics Passed 4 tests

Database Sync: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.55 ▼0.901.63 ▼0.6542.58 ▲0.14
Dashboard /wp-admin2,210 ▲244.84 ▼1.05106.93 ▲0.4342.59 ▲1.21
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0138.62 ▼1.5434.60 ▼1.39
Add New Post /wp-admin/post-new.php1,541 ▲1818.08 ▼4.96607.44 ▼26.4653.65 ▲6.73
Media Library /wp-admin/upload.php1,395 ▲104.22 ▲0.0596.29 ▼1.5149.15 ▲2.64
Database Sync /wp-admin/tools.php?page=dbs_options8122.0325.1124.65

Uninstaller [IO: ▲0.00MB] [DB: ▲0.72MB] 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
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • outlandish_sync_secret
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/tools.php?page=dbs_options
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/tools.php?page=dbs_options
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/database-sync/main-screen.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/database-sync/sync-screen.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/database-sync/database-sync.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
7 plugin tags: stage, sync, db, database, deploy...

database-sync/database-sync.php Passed 13 tests

"Database Sync" version 0.5.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
50 characters long description:
Sync databases across servers with a single click.

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
Everything looks great! No dangerous files found in this plugin366 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP46384366

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
PNG images were not found in this plugin