10% igefilter

Code Review | Igefilter

WordPress plugin Igefilter scored 10% from 54 tests.

About plugin

  • Plugin page: igefilter
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.1
  • WordPress version: 6.3.1
  • First release: May 19, 2018
  • Latest release: Nov 25, 2022
  • Number of updates: 12
  • Update frequency: every 137.8 days
  • Top authors: elukacs (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 631 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/igefilter/igefilter.php+323
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼0.37MB] [CPU: ▼19.08ms] Passed 4 tests

Analyzing server-side resources used by Igefilter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0239.94 ▼0.84
Dashboard /wp-admin3.20 ▼0.1137.17 ▼17.37
Posts /wp-admin/edit.php3.27 ▼0.0939.30 ▼13.35
Add New Post /wp-admin/post-new.php4.61 ▼1.2751.48 ▼40.78
Media Library /wp-admin/upload.php3.21 ▼0.0233.84 ▼4.82
igefilter /wp-admin/options-general.php?page=igefilter3.1731.35

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

Browser metrics Passed 4 tests

A check of browser resources used by Igefilter
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1513.19 ▼1.571.71 ▼0.3146.17 ▼2.77
Dashboard /wp-admin2,210 ▲45.87 ▲1.03108.37 ▼3.8240.02 ▼2.38
Posts /wp-admin/edit.php2,093 ▲12.06 ▲0.0237.74 ▼1.2434.15 ▲2.38
Add New Post /wp-admin/post-new.php1,540 ▲2623.48 ▲0.08704.17 ▲89.0754.30 ▼1.51
Media Library /wp-admin/upload.php1,386 ▼24.19 ▲0.0197.08 ▼11.1641.04 ▼2.65
igefilter /wp-admin/options-general.php?page=igefilter1,0352.1727.2828.59

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • plugin_igefilter_options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=igefilter
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.

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
Almost there! Just fix the following items
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function igefilter_get_options() in wp-content/plugins/igefilter/igefilter_admin_options_init.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/igefilter/igefilter.php:49
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/igefilter/igefilter_admin_options_help.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/igefilter/igefilter_admin_options_page.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

igefilter/igefilter.php Passed 13 tests

The main file in "Igefilter" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
39 characters long description:
Changes Bible references to hyperlinks.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin698 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4120173698

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity12.00
▷ Minimum method complexity12.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin