94% wp-dropfilters

Code Review | WP DropFilters

WordPress plugin WP DropFilters scored 94% from 54 tests.

About plugin

  • Plugin page: wp-dropfilters
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.7
  • WordPress version: 5.9.2
  • First release: Nov 20, 2015
  • Latest release: Apr 10, 2021
  • Number of updates: 4
  • Update frequency: every 492.2 days
  • Top authors: leogopal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 598 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

An overview of server-side resources used by WP DropFilters
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.59 ▲7.02
Dashboard /wp-admin3.42 ▲0.0232.27 ▼1.94
Posts /wp-admin/edit.php3.65 ▲0.0137.29 ▼0.11
Add New Post /wp-admin/post-new.php6.89 ▼0.0797.85 ▼1,187.56
Media Library /wp-admin/upload.php3.30 ▲0.0023.57 ▼3.39

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP DropFilters: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,773 ▲1916.02 ▲0.455.92 ▲0.162.04 ▼0.70
Dashboard /wp-admin2,898 ▲376.25 ▲0.07115.66 ▼16.62154.95 ▼5.41
Posts /wp-admin/edit.php2,744 ▲503.17 ▼0.0674.53 ▲12.69153.00 ▲9.85
Add New Post /wp-admin/post-new.php1,669 ▲815.93 ▼0.53399.75 ▲29.01158.95 ▲8.76
Media Library /wp-admin/upload.php1,750 ▲555.67 ▲0.11139.56 ▼5.84188.89 ▼4.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dropfilters/wp-dropfilters.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2, #3 in wp-dropfilters/assets to your readme.txt
You can look at the official readme.txt

wp-dropfilters/wp-dropfilters.php Passed 13 tests

"WP DropFilters" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
Better Select Boxes and Filters in the WordPress Admin

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
Good job! No executable or dangerous file extensions detected339 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS35833282
Markdown116024
JavaScript26717
PHP193316

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin