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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.38 ▼4.51 |
Dashboard /wp-admin | 3.37 ▲0.06 | 47.93 ▼3.18 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 47.62 ▼1.54 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 96.49 ▲8.34 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 36.24 ▲2.31 |
Database Sync /wp-admin/tools.php?page=dbs_options | 3.26 | 37.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.55 ▼0.90 | 1.63 ▼0.65 | 42.58 ▲0.14 |
Dashboard /wp-admin | 2,210 ▲24 | 4.84 ▼1.05 | 106.93 ▲0.43 | 42.59 ▲1.21 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 1.99 ▼0.01 | 38.62 ▼1.54 | 34.60 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,541 ▲18 | 18.08 ▼4.96 | 607.44 ▼26.46 | 53.65 ▲6.73 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.22 ▲0.05 | 96.29 ▼1.51 | 49.15 ▲2.64 |
Database Sync /wp-admin/tools.php?page=dbs_options | 812 | 2.03 | 25.11 | 24.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 63 | 84 | 366 |
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 code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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