Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > Notice in wp-content/plugins/database-audit/audit.php+162
Undefined index: Extra
Server metrics [RAM: ▼0.69MB] [CPU: ▼14.41ms] Passed 4 tests
Analyzing server-side resources used by WP Database Audit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 42.09 ▲1.79 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.18 ▼4.94 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.61 ▲4.60 |
Add New Post /wp-admin/post-new.php | 3.10 ▼2.79 | 33.97 ▼56.39 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.78 ▲1.91 |
Database Audit /wp-admin/options-general.php?page=wp-db-audit | 3.34 | 45.19 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: 13 new tables, 6 new options
New tables |
---|
wp_term_taxonomy_audit |
wp_links_audit |
wp_options_audit |
wp_usermeta_audit |
wp_commentmeta_audit |
wp_comments_audit |
wp_terms_audit |
wp_term_relationships_audit |
wp_postmeta_audit |
wp_posts_audit |
... |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Database Audit
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 14.74 ▲0.36 | 1.70 ▼0.46 | 45.19 ▼2.70 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.90 | 96.37 ▼13.89 | 38.26 ▼9.21 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.00 | 35.63 ▲0.89 | 32.98 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,127 ▼393 | 11.55 ▼11.66 | 308.20 ▼358.37 | 49.73 ▼14.16 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.19 ▲0.03 | 96.24 ▼3.94 | 43.08 ▼2.89 |
Database Audit /wp-admin/options-general.php?page=wp-db-audit | 1,237 | 2.18 | 22.35 | 27.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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- 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 take a closer look at the following
- 21× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require(WPDBAUDIT_PATH/controller/wpdbaudit_app_controller.php): failed to open stream: No such file or directory in wp-content/plugins/database-audit/controller/wpdbaudit_show_changes_controller.php on line 2
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/database-audit/lib/wpdbaudit_audit_table_list.php on line 3
- > PHP Notice
Undefined variable: changesList in wp-content/plugins/database-audit/views/show_changes/index.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'wp_db_audit' not found in wp-content/plugins/database-audit/admin.php:14
- > PHP Notice
Undefined variable: auditTableList in wp-content/plugins/database-audit/views/audit_list/index.php on line 16
- > PHP Fatal error
Uncaught Error: Call to a member function display() on null in wp-content/plugins/database-audit/views/audit_list/index.php:16
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/database-audit/lib/wpdbaudit_changes_list.php on line 6
- > PHP Notice
Undefined index: page in wp-content/plugins/database-audit/views/show_changes/index.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/database-audit/lib/wpdbaudit_changes_list.php on line 6
- > PHP Fatal error
require(): Failed opening required 'WPDBAUDIT_PATH/controller/wpdbaudit_app_controller.php' (include_path='.:/usr/share/php') in wp-content/plugins/database-audit/controller/wpdbaudit_show_changes_controller.php on line 2
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% 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
6 plugin tags: monitor, database, admin, logging, stats...
database-audit/wp-db-audit.php 92% from 13 tests
The principal PHP file in "WP Database Audit" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("database-audit.php" instead of "wp-db-audit.php")
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
Everything looks great! No dangerous files found in this plugin927 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 232 | 411 | 840 |
Bourne Shell | 3 | 11 | 0 | 81 |
Markdown | 1 | 1 | 0 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 7.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 57 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 42 | 73.68% |
▷ Protected methods | 5 | 8.77% |
▷ Private methods | 10 | 17.54% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 2 | 40.00% |
▷ Class constants | 3 | 60.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin