83% etruel-del-post-copies

Code Review | WP Delete Post Copies

WordPress plugin WP Delete Post Copies scored83%from 54 tests.

About plugin

  • Plugin page: etruel-del-post-c...
  • Plugin version: 5.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Mar 3, 2010
  • Latest release: Mar 31, 2023
  • Number of updates: 22
  • Update frequency: every 217.1 days
  • Top authors: etruel (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /25,844 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.54MB] [CPU: ▲1.32ms] Passed 4 tests

Server-side resources used by WP Delete Post Copies
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3143.71 ▲0.04
Dashboard /wp-admin3.96 ▲0.6653.22 ▼1.10
Posts /wp-admin/edit.php4.01 ▲0.6658.85 ▲6.84
Add New Post /wp-admin/post-new.php6.50 ▲0.6298.94 ▼0.50
Media Library /wp-admin/upload.php3.82 ▲0.5945.73 ▲9.88
All Campaigns /wp-admin/edit.php?post_type=wpedpcampaign3.9445.16
Settings /wp-admin/edit.php?post_type=wpedpcampaign&page=edpc_options3.8236.61
Add New /wp-admin/post-new.php?post_type=wpedpcampaign3.9065.69

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
wpedpc_version
theysaidso_admin_options
wpedpc_settings
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Delete Post Copies
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲9313.38 ▼0.931.62 ▼0.4437.85 ▼7.84
Dashboard /wp-admin2,245 ▲605.27 ▼0.61108.86 ▲0.8472.95 ▲28.06
Posts /wp-admin/edit.php2,128 ▲392.28 ▲0.2236.87 ▼3.4037.00 ▲1.13
Add New Post /wp-admin/post-new.php1,546 ▲2517.73 ▼5.48733.66 ▲14.3049.45 ▼5.77
Media Library /wp-admin/upload.php1,418 ▲304.41 ▲0.28106.21 ▼14.5273.27 ▲25.42
All Campaigns /wp-admin/edit.php?post_type=wpedpcampaign1,1182.2836.3233.91
Settings /wp-admin/edit.php?post_type=wpedpcampaign&page=edpc_options1,0741.8530.4249.63
Add New /wp-admin/post-new.php?post_type=wpedpcampaign3,9013.4969.27100.49

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • can_compress_scripts
    • wpedpc_version
    • widget_theysaidso_widget
    • widget_recent-posts
    • wpedpc_settings
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/etruel-del-post-copies/includes/settings/myplugins.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Screenshots: Screenshot #1 (The logs are also in a new tab saving time to load the page. Click on title to refresh.) image missing
The official readme.txt might help

etruel-del-post-copies/edel-post-copies.php 69% from 13 tests

The entry point to "WP Delete Post Copies" version 5.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 142 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("etruel-del-post-copies.php" instead of "edel-post-copies.php")
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

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
Everything looks great! No dangerous files found in this plugin4,078 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
PHP195987853,221
PO File1171200477
JavaScript45210285
CSS351674
Markdown16021

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity61.25
▷ Minimum class complexity8.00
▷ Maximum class complexity113.00
Average method complexity5.35
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods111
▷ Static methods6054.05%
▷ Public methods10090.09%
▷ Protected methods00.00%
▷ Private methods119.91%
Functions31
▷ Named functions2993.55%
▷ Anonymous functions26.45%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.52MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-7.png32.70KB14.13KB▼ 56.80%
screenshot-3.png111.63KB43.51KB▼ 61.03%
screenshot-6.png37.69KB14.70KB▼ 61.00%
screenshot-1.png113.29KB42.98KB▼ 62.07%
screenshot-4.png95.30KB31.04KB▼ 67.42%