90% enable-database-tools

Code Review | Enable Database Tools

WordPress plugin Enable Database Tools scored90%from 54 tests.

About plugin

  • Plugin page: enable-database-t...
  • Plugin version: 2.7
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jun 6, 2018
  • Latest release: Oct 25, 2023
  • Number of updates: 22
  • Update frequency: every 90.1 days
  • Top authors: specialk (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

60+ active /6,762 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼7.22ms] Passed 4 tests

This is a short check of server-side resources used by Enable Database Tools
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0634.27 ▼3.67
Dashboard /wp-admin3.38 ▲0.0345.25 ▼15.33
Posts /wp-admin/edit.php3.49 ▲0.1344.40 ▼1.80
Add New Post /wp-admin/post-new.php5.96 ▲0.0781.03 ▼8.06
Media Library /wp-admin/upload.php3.30 ▲0.0735.98 ▲0.32
Enable DB Tools /wp-admin/options-general.php?page=enable-database-tools3.2728.52

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Enable Database Tools: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.34 ▼0.241.62 ▼0.1139.52 ▲0.36
Dashboard /wp-admin2,196 ▲165.51 ▼0.1580.90 ▼9.0938.24 ▼7.50
Posts /wp-admin/edit.php2,104 ▲72.00 ▼0.0333.06 ▼1.6133.09 ▼5.08
Add New Post /wp-admin/post-new.php1,529 ▲323.05 ▲0.02684.10 ▲17.1759.39 ▲7.00
Media Library /wp-admin/upload.php1,401 ▲14.17 ▼0.0693.30 ▼5.6941.93 ▼1.86
Enable DB Tools /wp-admin/options-general.php?page=enable-database-tools8051.9923.8630.39

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: database, optimize, innodb, tables, tools...

enable-database-tools/enable-database-tools.php Passed 13 tests

Analyzing the main PHP file in "Enable Database Tools" version 2.7
122 characters long description:
Enables you to optimize and repair InnoDB and MyISAM database tables using WordPress built-in database optimization tools.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin162 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP213229162

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity33.00
▷ Minimum class complexity33.00
▷ Maximum class complexity33.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants10100.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG images were found in this plugin