84% wp-reset

Code Review | WP Reset - Most Advanced WordPress Reset Tool

WordPress plugin WP Reset - Most Advanced WordPress Reset Tool scored84%from 54 tests.

About plugin

  • Plugin page: wp-reset
  • Plugin version: 1.98
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 17, 2016
  • Latest release: Sep 24, 2023
  • Number of updates: 128
  • Update frequency: every 21.0 days
  • Top authors: WebFactory (94.53%)bhupi18 (6.25%)

Code review

54 tests

User reviews

861 reviews

Install metrics

300,000+ active /6,510,877 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.66MB] [CPU: ▼1.61ms] Passed 4 tests

An overview of server-side resources used by WP Reset - Most Advanced WordPress Reset Tool
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.07 ▲0.6141.87 ▼3.60
Dashboard /wp-admin4.02 ▲0.7150.70 ▲4.60
Posts /wp-admin/edit.php4.07 ▲0.7151.78 ▲3.40
Add New Post /wp-admin/post-new.php6.56 ▲0.6790.52 ▼10.83
Media Library /wp-admin/upload.php3.88 ▲0.6538.95 ▲5.04
WP Reset /wp-admin/tools.php?page=wp-reset4.0963.08

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 43 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
wp-reset

Browser metrics Passed 4 tests

A check of browser resources used by WP Reset - Most Advanced WordPress Reset Tool
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲10913.69 ▼0.691.62 ▼0.0740.91 ▼1.67
Dashboard /wp-admin2,261 ▲705.12 ▲0.22102.52 ▲3.6242.02 ▲1.43
Posts /wp-admin/edit.php2,144 ▲552.31 ▲0.2943.23 ▲3.5632.32 ▼5.02
Add New Post /wp-admin/post-new.php1,529 ▼1323.32 ▲5.18647.01 ▲29.1650.66 ▼4.51
Media Library /wp-admin/upload.php1,437 ▲524.38 ▲0.2099.30 ▼6.0945.55 ▲3.32
WP Reset /wp-admin/tools.php?page=wp-reset4,7464.80100.89118.63

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-reset/wp-reset-utility.php
    • > /wp-content/plugins/wp-reset/wp-reset.php
    • > /wp-content/plugins/wp-reset/wp-reset-cli.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% 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 to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can take inspiration from this readme.txt

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

Analyzing the main PHP file in "WP Reset - Most Advanced WordPress Reset Tool" version 1.98
99 characters long description:
Reset the entire site or just selected parts while reserving the option to undo by using snapshots.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin7,062 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP168781,3884,534
JavaScript5200681,289
CSS4252411,226
SVG11013

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity25.71
▷ Minimum class complexity1.00
▷ Maximum class complexity284.00
Average method complexity4.40
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes24
▷ Abstract classes312.50%
▷ Concrete classes2187.50%
▷ Final classes00.00%
Methods178
▷ Static methods158.43%
▷ Public methods15385.96%
▷ Protected methods31.69%
▷ Private methods2212.36%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants2
▷ Global constants150.00%
▷ Class constants150.00%
▷ Public constants1100.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
7 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/wp-reset-icon.png3.11KB2.28KB▼ 26.85%
img/wp-force-ssl-logo.png23.38KB12.25KB▼ 47.59%
wf-flyout/icons/ucp.png16.30KB2.35KB▼ 85.58%
wf-flyout/icons/301-logo.png6.33KB3.09KB▼ 51.22%
wf-flyout/icons/wp-reset.png3.11KB2.28KB▼ 26.85%