84% ultimate-wp-reset

Code Review | Ultimate WordPress Reset

WordPress plugin Ultimate WordPress Reset scored84%from 54 tests.

About plugin

  • Plugin page: ultimate-wp-reset
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.1.1
  • WordPress version: 6.3.1
  • First release: Nov 17, 2017
  • Latest release: Apr 24, 2019
  • Number of updates: 5
  • Update frequency: every 104.6 days
  • Top authors: magniumthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,031 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.65ms] Passed 4 tests

An overview of server-side resources used by Ultimate WordPress Reset
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.53 ▼1.39
Dashboard /wp-admin3.36 ▲0.0548.01 ▼0.52
Posts /wp-admin/edit.php3.41 ▲0.0542.37 ▼11.94
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.61 ▼0.73
Media Library /wp-admin/upload.php3.28 ▲0.0534.19 ▲0.36
WordPress Reset /wp-admin/tools.php?page=ultimate-wordpress-reset3.2531.68

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

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

Browser metrics Passed 4 tests

Ultimate WordPress Reset: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲5014.17 ▼0.101.70 ▼0.1444.07 ▼1.74
Dashboard /wp-admin2,202 ▲255.62 ▲0.0486.71 ▼14.9939.27 ▼5.63
Posts /wp-admin/edit.php2,107 ▲102.00 ▼0.0133.55 ▼2.6234.43 ▼1.52
Add New Post /wp-admin/post-new.php1,532 ▲623.05 ▼0.56665.63 ▼2.1665.72 ▲6.69
Media Library /wp-admin/upload.php1,404 ▲14.23 ▲0.02104.02 ▼2.6545.92 ▼2.95
WordPress Reset /wp-admin/tools.php?page=ultimate-wordpress-reset8701.9929.3127.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 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 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ultimate-wp-reset/ultimate-wordpress-reset.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: clean, wordpress-reset, reset theme, reset, wordpress...

ultimate-wp-reset/ultimate-wordpress-reset.php 85% from 13 tests

The main file in "Ultimate WordPress Reset" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 153 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ultimate-wp-reset.php" instead of "ultimate-wordpress-reset.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin205 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13752205

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity43.00
▷ Minimum class complexity43.00
▷ Maximum class complexity43.00
Average method complexity5.20
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/hosting-wp-button.png26.03KB9.36KB▼ 64.05%