73% delete-multiple-themes

Code Review | Delete Multiple Themes

WordPress plugin Delete Multiple Themes scored73%from 54 tests.

About plugin

  • Plugin page: delete-multiple-t...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Oct 22, 2013
  • Latest release: Mar 28, 2015
  • Number of updates: 27
  • Update frequency: every 19.3 days
  • Top authors: happyplugins (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /23,668 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: ▼9.20ms] Passed 4 tests

Server-side resources used by Delete Multiple Themes
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0244.63 ▲6.12
Dashboard /wp-admin3.33 ▼0.0245.13 ▼21.60
Posts /wp-admin/edit.php3.38 ▲0.0246.10 ▼3.24
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.57 ▼9.52
Media Library /wp-admin/upload.php3.25 ▲0.0232.65 ▼2.44
Delete Themes /wp-admin/themes.php?page=delete-themes3.2329.67

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Delete Multiple Themes
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.63 ▼0.741.74 ▼0.0338.22 ▼6.43
Dashboard /wp-admin2,207 ▲195.85 ▼0.0196.01 ▼23.9537.32 ▼6.93
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0342.86 ▲2.8736.56 ▲3.53
Add New Post /wp-admin/post-new.php1,545 ▲2618.24 ▼5.00626.48 ▼54.8056.00 ▼2.32
Media Library /wp-admin/upload.php1,392 ▲14.25 ▲0.03102.49 ▲2.4543.33 ▼2.96
Delete Themes /wp-admin/themes.php?page=delete-themes1,0712.0224.6332.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/themes.php?page=delete-themes
    • > Notice in wp-content/plugins/delete-multiple-themes/delete-multiple-themes.php+105
    Undefined variable: parents

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
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/delete-multiple-themes/templates/updates_form.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/delete-multiple-themes/delete-multiple-themes.php:20

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
    • > GET request to /wp-admin/themes.php?page=delete-themes
    • > Network (severe)
    http://app.getresponse.com/view_webform.js?wid=665621&mg_param1=1&u=SLt - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: themes delete, themes managment, multiple themes delete

delete-multiple-themes/delete-multiple-themes.php Passed 13 tests

The main PHP file in "Delete Multiple Themes" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
36 characters long description:
Delete Multiple Themes in one click.

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
No dangerous file extensions were detected169 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26213169

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/happyplugins-logo.png12.03KB5.44KB▼ 54.79%