94% oomph-filter-widgets

Code Review | Oomph Filter Widgets

WordPress plugin Oomph Filter Widgets scored 94% from 54 tests.

About plugin

  • Plugin page: oomph-filter-widgets
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.2
  • WordPress version: 5.8.1
  • First release: Jul 5, 2013
  • Latest release: Jul 5, 2013
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: bendoh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 812 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.00MB] [CPU: ▼150.17ms] Passed 4 tests

A check of server-side resources used by Oomph Filter Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.21 ▲12.79
Dashboard /wp-admin3.06 ▲0.0141.95 ▼5.96
Posts /wp-admin/edit.php3.12 ▼0.0039.87 ▼11.76
Add New Post /wp-admin/post-new.php5.42 ▼0.0185.11 ▼588.77
Media Library /wp-admin/upload.php3.01 ▲0.0133.00 ▲5.82

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Oomph Filter Widgets
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲6615.82 ▲0.1011.90 ▲2.6748.52 ▲1.12
Dashboard /wp-admin2,972 ▲385.93 ▼0.07151.24 ▲13.46109.11 ▼9.07
Posts /wp-admin/edit.php2,736 ▼02.72 ▲0.0061.87 ▲0.7485.53 ▼7.72
Add New Post /wp-admin/post-new.php1,675 ▼19718.91 ▼0.24376.68 ▼9.97113.16 ▲0.02
Media Library /wp-admin/upload.php1,807 ▼65.03 ▼0.01155.58 ▲7.81113.71 ▼3.01

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/oomph-filter-widgets/oomph-filter-widgets.php:32

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: clone, widget, sidebar

oomph-filter-widgets/oomph-filter-widgets.php Passed 13 tests

The primary PHP file in "Oomph Filter Widgets" version 0.1 is used by WordPress to initiate all plugin functionality
83 characters long description:
Add a search screen to the widget list to allow for filtering of long widget lists.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1142342

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin