90% reset-database

Code Review | Reset Database

WordPress plugin Reset Database scored90%from 54 tests.

About plugin

  • Plugin page: reset-database
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Jun 29, 2016
  • Latest release: Jan 13, 2019
  • Number of updates: 21
  • Update frequency: every 45.8 days
  • Top authors: MalteseSolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /11,352 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.81ms] Passed 4 tests

An overview of server-side resources used by Reset Database
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.56 ▼3.93
Dashboard /wp-admin3.31 ▲0.0146.71 ▼4.23
Posts /wp-admin/edit.php3.36 ▲0.0144.55 ▼5.80
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.70 ▼9.27
Media Library /wp-admin/upload.php3.23 ▲0.0133.07 ▲0.40
Reset Database /wp-admin/tools.php?page=reset-database3.2030.09

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 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

Reset Database: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4713.53 ▼1.221.74 ▼0.3443.95 ▲0.57
Dashboard /wp-admin2,207 ▲195.81 ▲0.8796.09 ▼18.2239.89 ▼1.81
Posts /wp-admin/edit.php2,093 ▲42.02 ▼0.0234.23 ▼6.3934.02 ▼4.08
Add New Post /wp-admin/post-new.php1,517 ▼1117.64 ▼0.69617.65 ▼21.6344.94 ▼12.79
Media Library /wp-admin/upload.php1,395 ▲74.22 ▼0.0096.65 ▼1.6441.28 ▼2.49
Reset Database /wp-admin/tools.php?page=reset-database7692.0625.7227.31

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: reset database, wordpress reset, developers, reset wordpress, clean wordpress...

reset-database/reset-database.php Passed 13 tests

The principal PHP file in "Reset Database" v. 1.1.3 is loaded by WordPress automatically on each request
83 characters long description:
It resets the database to the default installation and will delete any media files.

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 plugin120 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112422120

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected