84% completely-delete

Code Review | Completely Delete

WordPress plugin Completely Delete scored84%from 54 tests.

About plugin

  • Plugin page: completely-delete
  • Plugin version: 0.8.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.1
  • WordPress version: 6.3.1
  • First release: Dec 30, 2013
  • Latest release: Apr 11, 2015
  • Number of updates: 13
  • Update frequency: every 35.9 days
  • Top authors: 1fixdotio (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,628 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.59ms] Passed 4 tests

Analyzing server-side resources used by Completely Delete
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.61 ▼5.71
Dashboard /wp-admin3.40 ▲0.0951.21 ▼0.63
Posts /wp-admin/edit.php3.51 ▲0.1649.79 ▲2.45
Add New Post /wp-admin/post-new.php5.98 ▲0.0993.11 ▼13.40
Media Library /wp-admin/upload.php3.32 ▲0.0937.66 ▲1.37
Completely Delete /wp-admin/options-general.php?page=completely-delete3.2933.43

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
cd-display-activation-message
db_upgraded
widget_recent-comments
widget_theysaidso_widget
completely-delete

Browser metrics Passed 4 tests

Checking browser requirements for Completely Delete
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.14 ▼0.211.88 ▲0.2246.49 ▲3.06
Dashboard /wp-admin2,202 ▲225.62 ▲0.0897.86 ▲2.8042.71 ▼0.47
Posts /wp-admin/edit.php2,108 ▲81.99 ▲0.0134.78 ▼3.7935.76 ▼3.55
Add New Post /wp-admin/post-new.php1,529 ▲323.59 ▲0.01646.69 ▼35.7360.38 ▲7.48
Media Library /wp-admin/upload.php1,404 ▲44.16 ▼0.0096.30 ▼6.7447.76 ▲2.19
Completely Delete /wp-admin/options-general.php?page=completely-delete8132.0124.0729.07

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Completely_Delete' not found in wp-content/plugins/completely-delete/admin/includes/settings.php:34
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/completely-delete/admin/views/admin.php:20

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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: pages, posts, attachemnts

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

"Completely Delete" version 0.8.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
68 characters long description:
A plugin to let you completely delete all related objects of a post.

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
Everything looks great! No dangerous files found in this plugin422 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7171411374
PO File191143
JavaScript1415
CSS1010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity18.67
▷ Minimum class complexity5.00
▷ Maximum class complexity38.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods32
▷ Static methods825.00%
▷ Public methods2681.25%
▷ Protected methods00.00%
▷ Private methods618.75%
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
No PNG files were detected