10% dpt-dbadmin

Code Review | Database Admin by DigitialPixies

WordPress plugin Database Admin by DigitialPixies scored10%from 54 tests.

About plugin

  • Plugin page: dpt-dbadmin
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-4.8.0
  • WordPress version: 6.3.1
  • First release: Jun 23, 2017
  • Latest release: Jul 3, 2017
  • Number of updates: 6
  • Update frequency: every 1.7 days
  • Top authors: digitalpixies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /832 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/dpt-dbadmin/dpt-dbadmin.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; dpt_dbadmin has a deprecated constructor

Server metrics [RAM: ▼1.89MB] [CPU: ▼51.60ms] Passed 4 tests

This is a short check of server-side resources used by Database Admin by DigitialPixies
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.11 ▼1.364.83 ▼31.68
Dashboard /wp-admin2.13 ▼1.2211.52 ▼49.60
Posts /wp-admin/edit.php2.13 ▼1.236.33 ▼38.24
Add New Post /wp-admin/post-new.php2.13 ▼3.767.81 ▼86.89
Media Library /wp-admin/upload.php2.13 ▼1.105.74 ▼26.42
DB Admin /wp-admin/tools.php?page=dpt_dbadmin2.136.57

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Database Admin by DigitialPixies: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,903 ▲15713.98 ▼0.751.78 ▲0.0146.18 ▲2.13
Dashboard /wp-admin2,309 ▲1325.91 ▲0.26106.81 ▲20.4541.39 ▼3.41
Posts /wp-admin/edit.php2,214 ▲1142.96 ▲0.9742.52 ▲8.1333.21 ▼4.51
Add New Post /wp-admin/post-new.php1,552 ▲2323.83 ▲0.56651.12 ▼5.6432.79 ▼27.48
Media Library /wp-admin/upload.php1,511 ▲1145.47 ▲1.26102.31 ▲3.3043.81 ▼0.44
DB Admin /wp-admin/tools.php?page=dpt_dbadmin1,6385.45103.0733.66

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/dpt-dbadmin/dpt-dbadmin.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; dpt_dbadmin has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=dpt_dbadmin
    • > Deprecated in wp-content/plugins/dpt-dbadmin/dpt-dbadmin.php+13
    Methods with the same name as their class will not be constructors in a future version of PHP; dpt_dbadmin has a deprecated constructor
    • > GET request to /wp-admin/tools.php?page=dpt_dbadmin
    • > Warning in wp-content/plugins/dpt-dbadmin/dpt-dbadmin.php+67
    Use of undefined constant Label - assumed 'Label' (this will throw an Error in a future version of PHP)

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dpt-dbadmin/dpt-dbadmin.php:205

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === dpt-dbadmin === )
Please take inspiration from this readme.txt

dpt-dbadmin/dpt-dbadmin.php Passed 13 tests

Analyzing the main PHP file in "Database Admin by DigitialPixies" version 0.2.0
102 characters long description:
Friendly UI for browsing database contents. Administrative actions will be available in future version

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected8,448 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
CSS33137,457
PHP2823318
SVG100288
JavaScript226209
HTML170176

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity18.00
▷ Minimum class complexity15.00
▷ Maximum class complexity21.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods28
▷ Static methods1553.57%
▷ Public methods2692.86%
▷ Protected methods00.00%
▷ Private methods27.14%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin