Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼8.38ms] Passed 4 tests
This is a short check of server-side resources used by WP DB Driver
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.04 | 36.02 ▼4.97 |
Dashboard /wp-admin | 3.34 ▲0.04 | 44.98 ▼2.19 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 45.88 ▼7.75 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 81.65 ▼17.33 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.47 ▼3.48 |
WP DB Driver /wp-admin/tools.php?page=wp-db-driver | 3.24 | 30.61 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP DB Driver
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.65 ▼0.75 | 1.88 ▲0.12 | 42.72 ▼0.77 |
Dashboard /wp-admin | 2,210 ▲22 | 5.88 ▲0.78 | 98.89 ▼3.71 | 38.05 ▼4.56 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.04 ▲0.00 | 33.60 ▼9.67 | 32.47 ▼4.46 |
Add New Post /wp-admin/post-new.php | 1,536 ▲7 | 23.20 ▼0.05 | 661.74 ▲56.75 | 54.21 ▲6.30 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.27 ▼0.02 | 93.54 ▼2.26 | 44.42 ▲2.00 |
WP DB Driver /wp-admin/tools.php?page=wp-db-driver | 805 | 2.02 | 27.46 | 28.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/tools.php?page=wp-db-driver
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/tools.php?page=wp-db-driver
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 6× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'wpdb_driver' not found in wp-content/plugins/wp-db-driver/drivers/pdo_mysql.php:12
- > PHP Fatal error
Uncaught Error: Class 'wpdb_driver' not found in wp-content/plugins/wp-db-driver/drivers/mysqli.php:12
- > PHP Fatal error
Uncaught Error: Class 'wpdb_driver' not found in wp-content/plugins/wp-db-driver/drivers/mysql.php:12
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-db-driver/wp-content/db.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function _deprecated_file() in wp-content/plugins/wp-db-driver/db.php:3
- > PHP Fatal error
Uncaught Error: Class 'wpdb' not found in wp-content/plugins/wp-db-driver/inc/db-driver.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: database, mysqli, backend, pdo, mysql
wp-db-driver/wp-db-driver.php 92% from 13 tests
"WP DB Driver" version 2.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: The domain path points to an invalid folder, "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,091 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 674 | 1,728 | 2,091 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 63.29 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 308.00 |
Average method complexity | 4.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 13 | 8.33% |
▷ Public methods | 142 | 91.03% |
▷ Protected methods | 11 | 7.05% |
▷ Private methods | 3 | 1.92% |
Functions | 2 | |
▷ Named functions | 2 | 100.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
No PNG images were found in this plugin