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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.13 | 57.27 ▼5.56 |
Dashboard /wp-admin | 3.48 ▲0.07 | 87.91 ▼4.59 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 38.83 ▼0.80 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 95.08 ▼1,164.18 |
Media Library /wp-admin/upload.php | 3.36 ▲0.06 | 26.21 ▲2.29 |
Role Based Access /wp-admin/admin.php?page=database_my_admin_role_based_access | 3.33 | 25.32 |
Database Admin /wp-admin/admin.php?page=database_admin | 3.34 | 30.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,796 ▲42 | 15.92 ▲0.48 | 5.54 ▼2.81 | 2.10 ▼0.55 |
Dashboard /wp-admin | 2,921 ▲70 | 6.13 ▼0.00 | 126.82 ▼19.08 | 193.25 ▲28.14 |
Posts /wp-admin/edit.php | 2,722 ▲38 | 3.13 ▼0.12 | 63.80 ▼39.53 | 207.11 ▲41.73 |
Add New Post /wp-admin/post-new.php | 1,683 ▲22 | 16.27 ▼0.14 | 405.16 ▼30.73 | 184.49 ▲29.76 |
Media Library /wp-admin/upload.php | 1,730 ▲35 | 5.62 ▲0.07 | 126.01 ▼64.63 | 265.62 ▲62.13 |
Role Based Access /wp-admin/admin.php?page=database_my_admin_role_based_access | 1,031 | 2.38 | 53.98 | 104.59 |
Database Admin /wp-admin/admin.php?page=database_admin | 1,039 | 2.38 | 57.22 | 111.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 148 | 118 | 340 |
CSS | 1 | 1 | 0 | 6 |
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 code | 0.32 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 2 | 10.00% |
▷ Public methods | 16 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 20.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 0.83KB | 0.90KB | 0.00% |
images/logo-square.png | 3.03KB | 2.55KB | ▼ 15.78% |
images/logo.png | 2.18KB | 2.55KB | 0.00% |