Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.68MB] [CPU: ▲7.13ms] Passed 4 tests
An overview of server-side resources used by TS Comfort DB
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.09 ▲0.63 | 48.99 ▲9.41 |
Dashboard /wp-admin | 4.03 ▲0.73 | 60.41 ▲6.63 |
Posts /wp-admin/edit.php | 4.08 ▲0.73 | 64.34 ▲13.23 |
Add New Post /wp-admin/post-new.php | 6.56 ▲0.68 | 100.75 ▼0.77 |
Media Library /wp-admin/upload.php | 3.90 ▲0.67 | 50.45 ▲13.81 |
Database /wp-admin/admin.php?page=tscomfortdb-mainpage | 3.94 | 55.59 |
Settings /wp-admin/admin.php?page=tscomfortdb-settings | 3.86 | 42.80 |
File Manager /wp-admin/admin.php?page=tscomfortdb-filemanager | 3.87 | 42.54 |
Global Post Search /wp-admin/admin.php?page=tsinf_comfortdb_plugin_post_search | 3.86 | 39.07 |
SQL Export BETA /wp-admin/admin.php?page=tsinf_database_exporter_plugin_page | 3.93 | 52.51 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- The plugin illegally modified 1 file (0.00KB) outside of "wp-content/plugins/ts-comfort-database/" and "wp-content/uploads/"
- (new file) wp-content/ts-plugins/ts-comfort-database/.empty
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by TS Comfort DB
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,883 ▲122 | 14.35 ▼0.00 | 1.92 ▲0.10 | 40.52 ▼4.80 |
Dashboard /wp-admin | 2,289 ▲112 | 5.01 ▼0.66 | 90.44 ▼11.17 | 83.86 ▲36.97 |
Posts /wp-admin/edit.php | 2,195 ▲92 | 2.56 ▲0.62 | 41.11 ▲3.66 | 36.20 ▲0.79 |
Add New Post /wp-admin/post-new.php | 1,614 ▲88 | 21.05 ▼2.60 | 706.52 ▲48.61 | 31.48 ▼23.06 |
Media Library /wp-admin/upload.php | 1,488 ▲85 | 4.50 ▲0.27 | 106.05 ▲6.59 | 71.24 ▲24.05 |
Database /wp-admin/admin.php?page=tscomfortdb-mainpage | 3,804 | 2.05 | 34.57 | 52.98 |
Settings /wp-admin/admin.php?page=tscomfortdb-settings | 973 | 2.07 | 27.00 | 27.26 |
File Manager /wp-admin/admin.php?page=tscomfortdb-filemanager | 933 | 1.82 | 27.53 | 28.14 |
Global Post Search /wp-admin/admin.php?page=tsinf_comfortdb_plugin_post_search | 1,174 | 1.82 | 26.59 | 27.87 |
SQL Export BETA /wp-admin/admin.php?page=tsinf_database_exporter_plugin_page | 3,708 | 2.89 | 247.89 | 73.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ts-comfort-database/checker.php
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined index: hash in wp-content/plugins/ts-comfort-database/checker.php on line 5
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/ts-comfort-database/plugin.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/ts-comfort-database/classes/tsinf_comfort_db_exporter.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ts-comfort-database/classes/tsinf_comfort_post_search.php:42
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ts-comfort-database/plugin.php on line 37
- > PHP Warning
require_once(ABSPATHwp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/ts-comfort-database/plugin.php on line 37
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in ts-comfort-database/assets to your readme.txt
ts-comfort-database/plugin.php 92% from 13 tests
The primary PHP file in "TS Comfort DB" version 2.0.7 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ts-comfort-database.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin6,131 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 670 | 527 | 3,215 |
CSS | 8 | 291 | 29 | 1,690 |
JavaScript | 9 | 205 | 6 | 903 |
PO File | 1 | 141 | 208 | 321 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 98.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 318.00 |
Average method complexity | 6.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 75.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 | 90 | |
▷ Static methods | 77 | 85.56% |
▷ Public methods | 72 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 20.00% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Comfort-SQLite-Logo.png | 3.65KB | 1.83KB | ▼ 49.79% |
images/Comfort-SQLite-Logo16x16.png | 0.46KB | 0.52KB | 0.00% |