Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'DBManager\Admin' does not have a method 'plugin_activate'
Server metrics [RAM: ▲0.16MB] [CPU: ▼3.87ms] Passed 4 tests
An overview of server-side resources used by DB Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.42 ▼1.73 |
Dashboard /wp-admin | 3.49 ▲0.18 | 48.27 ▼0.01 |
Posts /wp-admin/edit.php | 3.60 ▲0.25 | 46.63 ▼0.46 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 90.31 ▼13.29 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 38.96 ▲5.87 |
DB Manager /wp-admin/options-general.php?page=db-manager | 3.38 | 31.06 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for DB Manager
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.39 ▼0.93 | 1.65 ▼0.09 | 42.37 ▲0.94 |
Dashboard /wp-admin | 2,216 ▲28 | 4.88 ▼0.00 | 109.68 ▼2.77 | 41.42 ▼1.79 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.07 ▲0.06 | 40.64 ▲3.46 | 40.21 ▲8.08 |
Add New Post /wp-admin/post-new.php | 1,677 ▲158 | 22.81 ▼0.36 | 589.60 ▼49.71 | 64.38 ▲11.63 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.19 ▲0.01 | 93.33 ▼4.28 | 46.35 ▲2.01 |
DB Manager /wp-admin/options-general.php?page=db-manager | 883 | 1.78 | 27.66 | 31.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'DBManager\Admin' does not have a method 'plugin_deactivate'
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/db-manager/db-manager.php
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 94% from 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
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #1, #2 in db-manager/assets to your readme.txt
db-manager/db-manager.php 85% from 13 tests
The main PHP file in "DB Manager" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.4" instead of "5.0.0")
- Domain Path: The domain path folder does not exist ("/lang")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,480 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 154 | 241 | 984 |
SVG | 1 | 0 | 0 | 394 |
JavaScript | 1 | 4 | 6 | 60 |
CSS | 2 | 7 | 12 | 34 |
JSON | 2 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 26.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 16 | 28.07% |
▷ Public methods | 46 | 80.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 19.30% |
Functions | 8 | |
▷ Named functions | 5 | 62.50% |
▷ Anonymous functions | 3 | 37.50% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) banner-772x250.png | 36.26KB | 0.00KB | ▼ 100.00% |