84% delete-usermetas

Code Review | Delete Usermetas

WordPress plugin Delete Usermetas scored84%from 54 tests.

About plugin

  • Plugin page: delete-usermetas
  • Plugin version: 1.2.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-6.1
  • WordPress version: 6.3.1
  • First release: Nov 9, 2018
  • Latest release: Oct 22, 2023
  • Number of updates: 12
  • Update frequency: every 151.8 days
  • Top authors: Jose Lazo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,210 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.71ms] Passed 4 tests

This is a short check of server-side resources used by Delete Usermetas
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0335.75 ▲0.56
Dashboard /wp-admin3.34 ▼0.0144.84 ▼17.38
Posts /wp-admin/edit.php3.39 ▲0.0346.87 ▲1.39
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.08 ▼7.16
Media Library /wp-admin/upload.php3.26 ▲0.0335.09 ▲1.16
Delete Usermetas /wp-admin/tools.php?page=delete_usermetas3.2338.07

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Delete Usermetas
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲6014.33 ▼0.291.76 ▲0.1441.52 ▲1.02
Dashboard /wp-admin2,195 ▲275.49 ▼0.1182.55 ▼5.5338.13 ▼7.70
Posts /wp-admin/edit.php2,106 ▲61.99 ▲0.0333.88 ▲0.5830.84 ▼1.00
Add New Post /wp-admin/post-new.php1,547 ▲1923.09 ▲0.11667.90 ▼3.9852.92 ▼4.58
Media Library /wp-admin/upload.php1,403 ▲34.17 ▼0.05102.27 ▼8.6346.26 ▲0.91
Delete Usermetas /wp-admin/tools.php?page=delete_usermetas9432.0325.2432.94

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/delete-usermetas/delete-usermetas.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: users, usermetas

delete-usermetas/delete-usermetas.php Passed 13 tests

The main PHP file in "Delete Usermetas" ver. 1.2.1 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
This plugin delete any usermeta user by user or all user at same time.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected212 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1817132
PO File1192175
JavaScript1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png39.00KB13.85KB▼ 64.49%
assets/icon-256x256.png15.30KB7.60KB▼ 50.36%
assets/icon-128x128.png7.21KB4.89KB▼ 32.20%