90% json-api-delete-user

Code Review | JSON API Delete User

WordPress plugin JSON API Delete User scored 90% from 54 tests.

About plugin

  • Plugin page: json-api-delete-user
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Jun 16, 2016
  • Latest release: Jun 10, 2016
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: aiyaz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 827 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼0.73ms] Passed 4 tests

This is a short check of server-side resources used by JSON API Delete User
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.44 ▲1.52
Dashboard /wp-admin3.31 ▲0.0145.42 ▼2.32
Posts /wp-admin/edit.php3.36 ▲0.0148.63 ▲2.60
Add New Post /wp-admin/post-new.php5.89 ▲0.0195.92 ▼0.54
Media Library /wp-admin/upload.php3.23 ▲0.0132.83 ▼1.57

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by JSON API Delete User
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲7413.21 ▼1.081.68 ▼0.2943.36 ▼7.21
Dashboard /wp-admin2,209 ▲215.82 ▲0.98105.64 ▼5.5340.35 ▼4.35
Posts /wp-admin/edit.php2,097 ▲82.00 ▲0.0239.25 ▼0.8835.46 ▼1.15
Add New Post /wp-admin/post-new.php1,547 ▲2823.50 ▲0.55678.72 ▲8.7667.45 ▲6.89
Media Library /wp-admin/upload.php1,400 ▲154.20 ▼0.0196.10 ▼8.2144.69 ▲0.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: delete user api, delete usermeta, restful delete user, json api, json api delete user

json-api-delete-user/json-api-delete-user.php Passed 13 tests

The principal PHP file in "JSON API Delete User" v. 1.0 is loaded by WordPress automatically on each request
56 characters long description:
Delete User with user meta details add-ons for JSON API.

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
Everything looks great! No dangerous files found in this plugin92 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3211692

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity5.00
▷ Minimum method complexity5.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
PNG images were not found in this plugin