10% gimme-filter

Code Review | Gimme Filter

WordPress plugin Gimme Filter scored 10% from 54 tests.

About plugin

  • Plugin page: gimme-filter
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Apr 25, 2017
  • Latest release: Apr 25, 2017
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: kirillantv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 612 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
  • Install procedure had errors
    • > Warning in wp-content/plugins/gimme-filter/admin/class-gimme-filter-options.php+122
    Invalid argument supplied for foreach()

Server metrics [RAM: ▼1.96MB] [CPU: ▼56.49ms] Passed 4 tests

This is a short check of server-side resources used by Gimme Filter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.446.13 ▼39.17
Dashboard /wp-admin2.05 ▼1.268.61 ▼46.96
Posts /wp-admin/edit.php2.05 ▼1.317.70 ▼35.92
Add New Post /wp-admin/post-new.php2.05 ▼3.847.36 ▼103.90
Media Library /wp-admin/upload.php2.05 ▼1.185.85 ▼28.47

Server storage [IO: ▲0.04MB] [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: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Gimme Filter: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,900 ▲15413.81 ▼0.488.76 ▲6.5643.06 ▲0.32
Dashboard /wp-admin2,222 ▲375.89 ▲0.84111.20 ▼7.1347.06 ▲5.78
Posts /wp-admin/edit.php2,105 ▲191.99 ▲0.0041.75 ▲5.5254.41 ▲21.28
Add New Post /wp-admin/post-new.php1,532 ▼222.96 ▼0.17687.19 ▼31.4552.95 ▼9.96
Media Library /wp-admin/upload.php1,404 ▲194.21 ▲0.02107.05 ▲6.3147.15 ▲1.02

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/gimme-filter/admin/class-gimme-filter-options.php+122
    Invalid argument supplied for foreach()
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/gimme-filter/admin/class-gimme-filter-option-page.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/gimme-filter/admin/class-gimme-filter-options.php:74
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/gimme-filter/includes/class-gimme-filter-widget.php:7

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 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Invalid url: ""
  • Screenshots: Add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
Please take inspiration from this readme.txt

gimme-filter/gimmefilter.php 92% from 13 tests

The primary PHP file in "Gimme Filter" version 1.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gimme-filter.php" instead of "gimmefilter.php")

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
There were no executable files found in this plugin648 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8312437498
PO File1262670
CSS215063
JavaScript18017

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity7.25
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes112.50%
Methods42
▷ Static methods1945.24%
▷ Public methods2764.29%
▷ Protected methods00.00%
▷ Private methods1535.71%
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

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin