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: ▼0.09MB] [CPU: ▼10.92ms] Passed 4 tests
This is a short check of server-side resources used by Database Operations
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 27.11 ▼16.49 |
Dashboard /wp-admin | 3.25 ▼0.06 | 29.82 ▼19.76 |
Posts /wp-admin/edit.php | 3.32 ▼0.03 | 45.56 ▼0.55 |
Add New Post /wp-admin/post-new.php | 5.56 ▼0.32 | 93.44 ▲2.46 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 27.22 ▼6.87 |
Add New /wp-admin/post-new.php?post_type=ct_ms | 3.34 | 40.27 |
All Database Operations /wp-admin/edit.php?post_type=ct_ms | 3.30 | 31.29 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Database Operations
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,988 ▲253 | 14.54 ▲0.14 | 12.34 ▲10.66 | 41.79 ▼9.34 |
Dashboard /wp-admin | 2,245 ▲57 | 5.45 ▲0.57 | 103.45 ▼11.62 | 38.69 ▼8.44 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.49 ▲0.52 | 46.71 ▲0.89 | 44.47 ▲7.30 |
Add New Post /wp-admin/post-new.php | 1,552 ▲38 | 23.27 ▼0.30 | 678.09 ▲0.90 | 35.01 ▼18.30 |
Media Library /wp-admin/upload.php | 1,433 ▲48 | 4.71 ▲0.47 | 102.77 ▲0.09 | 43.75 ▲1.40 |
Add New /wp-admin/post-new.php?post_type=ct_ms | 1,794 | 3.16 | 68.72 | 55.39 |
All Database Operations /wp-admin/edit.php?post_type=ct_ms | 1,103 | 2.36 | 38.67 | 27.86 |
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
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
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 errors were triggered by the plugin
- 8 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ct_ms
- > Warning in wp-content/plugins/database-operations/admin/class-database-operations-admin.php+92
Use of undefined constant PWPC_CHARTS_VERSION - assumed 'PWPC_CHARTS_VERSION' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ct_ms
- > Warning in wp-content/plugins/database-operations/admin/class-database-operations-admin.php+67
Use of undefined constant db_wp_charts_init - assumed 'db_wp_charts_init' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=ct_ms
- > Warning in wp-content/plugins/database-operations/admin/class-database-operations-admin.php+68
Use of undefined constant db_wp_charts_admin - assumed 'db_wp_charts_admin' (this will throw an Error in a future version of PHP)
- 10 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=ct_ms
- > Warning in wp-content/plugins/database-operations/admin/views/database-operations-form-admin-display.php+158
Use of undefined constant PWPC_CHARTS_TEXT_DOMAIN - assumed 'PWPC_CHARTS_TEXT_DOMAIN' (this will throw an Error in a future version of PHP)
- > GET request to /wp-admin/post-new.php?post_type=ct_ms
- > Notice in wp-content/plugins/database-operations/admin/views/database-operations-admin-display.php+15
Undefined variable: res
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function db_op_retrieve_dbs() in wp-content/plugins/database-operations/admin/views/database-operations-form-admin-display.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/database-operations/admin/views/database-operations-init-admin-display.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
7 plugin tags: database operations, mysql, db, database management, database...
database-operations/db_op.php 77% from 13 tests
The main file in "Database Operations" v. 2.9.9 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("database-operations.php" instead of "db_op.php")
- Text Domain: The text domain should only use lowercase characters and dashes
- Description: Please don't use more than 140 characters for the plugin description (currently 219 characters long)
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected3,208 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 277 | 232 | 2,004 |
PHP | 14 | 197 | 393 | 611 |
CSS | 4 | 40 | 30 | 593 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 28 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 20.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin