Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.95MB] [CPU: ▼37.20ms] Passed 4 tests
Server-side resources used by DBOptimizer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 42.73 ▼6.25 |
Dashboard /wp-admin | 2.99 ▼0.31 | 23.23 ▼28.41 |
Posts /wp-admin/edit.php | 3.00 ▼0.36 | 24.14 ▼26.92 |
Add New Post /wp-admin/post-new.php | 2.99 ▼2.89 | 26.87 ▼82.63 |
Media Library /wp-admin/upload.php | 3.00 ▼0.24 | 23.32 ▼10.82 |
DBOptimizer /wp-admin/options-general.php?page=DBOptimizer | 3.00 | 25.03 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for DBOptimizer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.40 ▲0.03 | 1.98 ▲0.18 | 44.88 ▼1.59 |
Dashboard /wp-admin | 2,196 ▲22 | 5.62 ▲0.01 | 99.01 ▲4.74 | 41.58 ▼3.60 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.05 | 35.86 ▲0.40 | 32.55 ▼4.87 |
Add New Post /wp-admin/post-new.php | 1,538 ▲3 | 18.37 ▲0.06 | 663.29 ▼7.31 | 66.40 ▲1.87 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.29 ▲0.09 | 101.74 ▼4.86 | 42.77 ▼3.89 |
DBOptimizer /wp-admin/options-general.php?page=DBOptimizer | 977 | 1.96 | 23.60 | 26.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=DBOptimizer
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant DB_NAME - assumed 'DB_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/dboptimizer/WP_DB-admin.php on line 44
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dboptimizer/db_optimizer.php:28
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/dboptimizer/WP_DB-admin.php:60
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Interface of the DBOptimizer plugin. Simple and easy to use. No ads and no shady code!) image missing
dboptimizer/db_optimizer.php 92% from 13 tests
The entry point to "DBOptimizer" version 2.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("dboptimizer.php" instead of "db_optimizer.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 plugin104 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 3 | 12 | 104 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 28.47KB | 17.08KB | ▼ 40.00% |