Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.06MB] [CPU: ▼323.08ms] Passed 4 tests
Analyzing server-side resources used by Database Browser
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.18 | 52.95 ▲0.80 |
Dashboard /wp-admin | 3.27 ▼0.14 | 18.73 ▼13.82 |
Posts /wp-admin/edit.php | 3.27 ▼0.37 | 17.78 ▼19.68 |
Add New Post /wp-admin/post-new.php | 3.27 ▼3.70 | 20.93 ▼1,251.55 |
Media Library /wp-admin/upload.php | 3.27 ▼0.03 | 18.03 ▼7.28 |
Database browser /wp-admin/tools.php?page=databasebrowser | 3.27 | 19.26 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Database Browser
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,773 ▲19 | 15.89 ▲0.24 | 5.60 ▼0.34 | 2.12 ▼0.18 |
Dashboard /wp-admin | 2,899 ▲38 | 6.04 ▼0.12 | 119.58 ▼18.93 | 154.33 ▼7.85 |
Posts /wp-admin/edit.php | 2,698 ▲7 | 3.24 ▲0.01 | 60.40 ▼2.65 | 144.22 ▼2.11 |
Add New Post /wp-admin/post-new.php | 1,675 ▲7 | 18.10 ▼0.11 | 397.01 ▼20.58 | 160.10 ▲4.10 |
Media Library /wp-admin/upload.php | 1,705 ▲10 | 5.54 ▲0.02 | 138.21 ▼2.29 | 188.73 ▲6.55 |
Database browser /wp-admin/tools.php?page=databasebrowser | 1,073 | 2.42 | 52.95 | 108.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/database-browser/database-browser.php+183
Undefined index: _wpnonce
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=databasebrowser
- > Notice in wp-content/plugins/database-browser/database-browser.php+284
Undefined index: _wpnonce
- > GET request to /wp-admin/tools.php?page=databasebrowser
- > Notice in wp-content/plugins/database-browser/database-browser.php+210
Undefined index: table
- > GET request to /wp-admin/tools.php?page=databasebrowser
- > Notice in wp-content/plugins/database-browser/database-browser.php+243
Undefined index: query
- > GET request to /wp-admin/tools.php?page=databasebrowser
- > Notice in wp-content/plugins/database-browser/database-browser.php+249
Undefined index: queryname
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/database-browser/tests/Output_Base_Test.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/database-browser/views/results.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/database-browser/views/filters.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/database-browser/views/query.php:1
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/database-browser/tests/Output_Base_Test.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/database-browser/views/title.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/database-browser/tests/Output_Base_Test.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/database-browser/views/navigation.php:3
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/database-browser/tests/Output_Base_Test.php:2
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/database-browser/tests/Output_Base_Test.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (The database browser form) image not found
database-browser/database-browser.php Passed 13 tests
The principal PHP file in "Database Browser" v. 1.4.4 is loaded by WordPress automatically on each request
86 characters long description:
Easily browse the data in your database, and download in CSV, XML, SQL and JSON format
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,146 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 236 | 374 | 1,089 |
JavaScript | 1 | 0 | 3 | 31 |
CSS | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 12.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 89.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 93.18% |
▷ Protected methods | 2 | 4.55% |
▷ Private methods | 1 | 2.27% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 161.87KB | 78.70KB | ▼ 51.38% |