Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.28ms] Passed 4 tests
Analyzing server-side resources used by SQLite Database Integration
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 36.05 ▼2.20 |
Dashboard /wp-admin | 3.37 ▲0.03 | 44.65 ▼14.88 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.52 ▲3.45 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 90.91 ▼2.88 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 33.99 ▼1.14 |
SQLite integration /wp-admin/options-general.php?page=sqlite-integration | 3.26 | 29.60 |
Server storage [IO: ▲0.28MB] [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 |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SQLite Database Integration
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲86 | 14.33 ▲0.07 | 1.92 ▲0.38 | 40.41 ▼0.36 |
Dashboard /wp-admin | 2,221 ▲41 | 5.61 ▲0.08 | 90.82 ▲2.52 | 44.43 ▲4.14 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 1.98 ▼0.01 | 40.64 ▲4.15 | 40.19 ▲5.70 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 23.30 ▼0.33 | 642.87 ▼30.43 | 52.16 ▼5.83 |
Media Library /wp-admin/upload.php | 1,426 ▲23 | 4.21 ▲0.03 | 95.29 ▲0.22 | 45.45 ▲0.27 |
SQLite integration /wp-admin/options-general.php?page=sqlite-integration | 797 | 2.00 | 23.79 | 25.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/sqlite-database-integration/deactivate.php:68
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sqlite-database-integration/constants.php on line 39
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/sqlite-database-integration/constants.php on line 39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sqlite-database-integration/health-check.php:62
- > PHP Fatal error
Uncaught Error: Class 'wpdb' not found in wp-content/plugins/sqlite-database-integration/wp-includes/sqlite/class-wp-sqlite-db.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sqlite-database-integration/admin-notices.php:73
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sqlite-database-integration/activate.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sqlite-database-integration/admin-page.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sqlite-database-integration/admin-page.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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
2 plugin tags: database, performance
sqlite-database-integration/load.php 92% from 13 tests
The main PHP script in "SQLite Database Integration" version 2.1.2 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("sqlite-database-integration.php" instead of "load.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin5,244 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 790 | 2,799 | 5,244 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 115.33 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 349.00 |
Average method complexity | 4.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 64.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 177 | |
▷ Static methods | 9 | 5.08% |
▷ Public methods | 114 | 64.41% |
▷ Protected methods | 1 | 0.56% |
▷ Private methods | 62 | 35.03% |
Functions | 17 | |
▷ Named functions | 12 | 70.59% |
▷ Anonymous functions | 5 | 29.41% |
Constants | 55 | |
▷ Global constants | 9 | 16.36% |
▷ Class constants | 46 | 83.64% |
▷ Public constants | 46 | 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
PNG images were not found in this plugin