Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5643
File wp-db.php is deprecated since version 6.1.0! Use wp-includes/class-wpdb.php instead.
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.38ms] Passed 4 tests
A check of server-side resources used by HyperDB
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.50 ▼6.71 |
Dashboard /wp-admin | 3.31 ▲0.00 | 45.66 ▼6.88 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.03 ▲3.90 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.49 ▼9.61 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 33.04 ▲1.68 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
HyperDB: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼0.99 | 1.67 ▼0.19 | 39.07 ▼2.85 |
Dashboard /wp-admin | 2,203 ▲11 | 5.81 ▲0.84 | 93.01 ▼27.99 | 40.72 ▼6.14 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.04 ▼0.00 | 39.23 ▲1.92 | 34.91 ▲0.52 |
Add New Post /wp-admin/post-new.php | 1,533 ▼6 | 23.20 ▼0.10 | 604.33 ▼45.67 | 46.59 ▼2.84 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.14 ▼0.16 | 128.46 ▲28.88 | 50.64 ▲8.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
require_once(ABSPATHWPINC/wp-db.php): failed to open stream: No such file or directory in wp-content/plugins/hyperdb/db.php on line 29
- > PHP Warning
Creating default object from empty value in wp-content/plugins/hyperdb/db-config.php on line 40
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/hyperdb/db.php on line 29
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHWPINC/wp-db.php' (include_path='.:/usr/share/php') in wp-content/plugins/hyperdb/db.php on line 29
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/hyperdb/db.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined method stdClass::add_database() in wp-content/plugins/hyperdb/db-config.php:217
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: wordpresscom, performance, scaling, availability, mysql
hyperdb/db.php 92% from 13 tests
The primary PHP file in "HyperDB" version 1.8 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hyperdb.php" instead of "db.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,077 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 339 | 636 | 1,077 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 108)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 276.00 |
▷ Minimum class complexity | 276.00 |
▷ Maximum class complexity | 276.00 |
Average method complexity | 6.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 108.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 54 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin