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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.11 ▼1.36 | 4.83 ▼31.68 |
Dashboard /wp-admin | 2.13 ▼1.22 | 11.52 ▼49.60 |
Posts /wp-admin/edit.php | 2.13 ▼1.23 | 6.33 ▼38.24 |
Add New Post /wp-admin/post-new.php | 2.13 ▼3.76 | 7.81 ▼86.89 |
Media Library /wp-admin/upload.php | 2.13 ▼1.10 | 5.74 ▼26.42 |
DB Admin /wp-admin/tools.php?page=dpt_dbadmin | 2.13 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲157 | 13.98 ▼0.75 | 1.78 ▲0.01 | 46.18 ▲2.13 |
Dashboard /wp-admin | 2,309 ▲132 | 5.91 ▲0.26 | 106.81 ▲20.45 | 41.39 ▼3.41 |
Posts /wp-admin/edit.php | 2,214 ▲114 | 2.96 ▲0.97 | 42.52 ▲8.13 | 33.21 ▼4.51 |
Add New Post /wp-admin/post-new.php | 1,552 ▲23 | 23.83 ▲0.56 | 651.12 ▼5.64 | 32.79 ▼27.48 |
Media Library /wp-admin/upload.php | 1,511 ▲114 | 5.47 ▲1.26 | 102.31 ▲3.30 | 43.81 ▼0.44 |
DB Admin /wp-admin/tools.php?page=dpt_dbadmin | 1,638 | 5.45 | 103.07 | 33.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
- > 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 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 ===
)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 3 | 13 | 7,457 |
PHP | 2 | 8 | 23 | 318 |
SVG | 1 | 0 | 0 | 288 |
JavaScript | 2 | 2 | 6 | 209 |
HTML | 1 | 7 | 0 | 176 |
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 code | 0.24 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 15 | 53.57% |
▷ Public methods | 26 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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