94% my-database-admin

Code Review | Database My Admin

WordPress plugin Database My Admin scored 94% from 54 tests.

About plugin

  • Plugin page: my-database-admin
  • Plugin version: 1.1.23
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.8
  • WordPress version: 5.9.2
  • First release: Sep 13, 2018
  • Latest release: Aug 31, 2021
  • Number of updates: 9
  • Update frequency: every 120.3 days
  • Top authors: wpshrike (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

4,000+ active / 36,744 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.04MB] [CPU: ▼293.78ms] Passed 4 tests

Analyzing server-side resources used by Database My Admin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1357.27 ▼5.56
Dashboard /wp-admin3.48 ▲0.0787.91 ▼4.59
Posts /wp-admin/edit.php3.71 ▲0.0738.83 ▼0.80
Add New Post /wp-admin/post-new.php6.94 ▼0.0395.08 ▼1,164.18
Media Library /wp-admin/upload.php3.36 ▲0.0626.21 ▲2.29
Role Based Access /wp-admin/admin.php?page=database_my_admin_role_based_access3.3325.32
Database Admin /wp-admin/admin.php?page=database_admin3.3430.83

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Database My Admin: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,796 ▲4215.92 ▲0.485.54 ▼2.812.10 ▼0.55
Dashboard /wp-admin2,921 ▲706.13 ▼0.00126.82 ▼19.08193.25 ▲28.14
Posts /wp-admin/edit.php2,722 ▲383.13 ▼0.1263.80 ▼39.53207.11 ▲41.73
Add New Post /wp-admin/post-new.php1,683 ▲2216.27 ▼0.14405.16 ▼30.73184.49 ▲29.76
Media Library /wp-admin/upload.php1,730 ▲355.62 ▲0.07126.01 ▼64.63265.62 ▲62.13
Role Based Access /wp-admin/admin.php?page=database_my_admin_role_based_access1,0312.3853.98104.59
Database Admin /wp-admin/admin.php?page=database_admin1,0392.3857.22111.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/my-database-admin/database-my-admin.php:31

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: database manager, database, mariadb, mysql, phpmyadmin

my-database-admin/database-my-admin.php 92% from 13 tests

The principal PHP file in "Database My Admin" v. 1.1.23 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("my-database-admin.php" instead of "database-my-admin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin346 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP11148118340
CSS1106

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.30
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods20
▷ Static methods210.00%
▷ Public methods1680.00%
▷ Protected methods00.00%
▷ Private methods420.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png0.83KB0.90KB0.00%
images/logo-square.png3.03KB2.55KB▼ 15.78%
images/logo.png2.18KB2.55KB0.00%