84% wp-uninstaller-by-azed

Code Review | WP Uninstaller by Azed

WordPress plugin WP Uninstaller by Azed scored84%from 54 tests.

About plugin

  • Plugin page: wp-uninstaller-by...
  • Plugin version: 0.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.6
  • WordPress version: 6.3.1
  • First release: Jul 12, 2016
  • Latest release: Jul 28, 2016
  • Number of updates: 9
  • Update frequency: every 1.7 days
  • Top authors: azeddev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,168 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.04MB] [CPU: ▼4.97ms] Passed 4 tests

This is a short check of server-side resources used by WP Uninstaller by Azed
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.06 ▼4.59
Dashboard /wp-admin3.35 ▲0.0447.35 ▼7.45
Posts /wp-admin/edit.php3.40 ▲0.0451.36 ▲2.94
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.09 ▼10.79
Media Library /wp-admin/upload.php3.27 ▲0.0436.92 ▲3.63
Uninstall Wordpress /wp-admin/options-general.php?page=AzedWordpressUninstaller3.2432.90

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP Uninstaller by Azed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.21 ▼1.181.59 ▼0.6140.81 ▼5.37
Dashboard /wp-admin2,210 ▲225.84 ▲0.93109.45 ▲1.2741.61 ▼3.11
Posts /wp-admin/edit.php2,093 ▲41.99 ▲0.0040.29 ▲1.7237.41 ▲1.55
Add New Post /wp-admin/post-new.php1,536 ▼323.07 ▼0.24665.22 ▼11.1252.94 ▼2.32
Media Library /wp-admin/upload.php1,392 ▲44.16 ▼0.06111.93 ▲3.1847.91 ▲3.04
Uninstall Wordpress /wp-admin/options-general.php?page=AzedWordpressUninstaller8612.0222.8827.09

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-uninstaller-by-azed/wp-uninstaller-by-azed.php:138

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: safe, wordpress, uninstall, delete, clean

wp-uninstaller-by-azed/wp-uninstaller-by-azed.php Passed 13 tests

Analyzing the main PHP file in "WP Uninstaller by Azed" version 0.3.1
67 characters long description:
This plugin allow you to delete your wordpress installation safely.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected207 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11512113
PO File2222474
CSS112220

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.29MB with 0.18MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png87.47KB29.71KB▼ 66.03%
assets/screenshot-4.png18.73KB7.03KB▼ 62.46%
assets/screenshot-3.png23.15KB9.32KB▼ 59.75%
assets/screenshot-1.png168.36KB59.92KB▼ 64.41%