84% who-delete-my-posts

Code Review | Who Delete My Posts

WordPress plugin Who Delete My Posts scored84%from 54 tests.

About plugin

  • Plugin page: who-delete-my-posts
  • Plugin version: 0.1.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 6, 2022
  • Latest release: Aug 4, 2023
  • Number of updates: 9
  • Update frequency: every 33.4 days
  • Top authors: aixeiger (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /488 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▲3.71ms] Passed 4 tests

Server-side resources used by Who Delete My Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0847.17 ▲4.18
Dashboard /wp-admin45.11 ▲41.768,571,005.80 ▲8,570,948.21
Posts /wp-admin/edit.php3.54 ▲0.1458.55 ▲9.36
Add New Post /wp-admin/post-new.php6.01 ▲0.0897.75 ▼5.30
Media Library /wp-admin/upload.php3.35 ▲0.0841.57 ▲6.62
Who Delete My Posts? /wp-admin/tools.php?page=who-delete-my-posts3.3235.74

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Who Delete My Posts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.72 ▲0.371.92 ▲0.4644.54 ▲5.91
Dashboard /wp-admin2,199 ▲195.49 ▼0.1683.87 ▼9.7338.93 ▼3.95
Posts /wp-admin/edit.php2,107 ▲71.98 ▼0.0540.33 ▲5.4635.06 ▲0.68
Add New Post /wp-admin/post-new.php1,529 ▲323.13 ▼0.03652.18 ▼25.6155.33 ▼2.83
Media Library /wp-admin/upload.php1,401 ▲104.17 ▼0.04100.48 ▲2.8140.54 ▼4.83
Who Delete My Posts? /wp-admin/tools.php?page=who-delete-my-posts7842.0224.4628.44

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=who-delete-my-posts
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/tools.php?page=who-delete-my-posts
    • > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
    file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
No browser issues were found

Optimizations

Plugin configuration 96% from 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
5 plugin tags: user post deleted, post deleted, deleted, page deleted, security

who-delete-my-posts/whodeletemyposts.php 92% from 13 tests

The entry point to "Who Delete My Posts" version 0.1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("who-delete-my-posts.php" instead of "whodeletemyposts.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected524 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP11112268524

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.33
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.47
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods39
▷ Static methods615.38%
▷ Public methods3794.87%
▷ Protected methods00.00%
▷ Private methods25.13%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin