83% product-isotope-filter-for-elementor

Code Review | Product Isotope Filter for Elementor

WordPress plugin Product Isotope Filter for Elementor scored83%from 54 tests.

About plugin

  • Plugin page: product-isotope-f...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 4, 2022
  • Latest release: Nov 4, 2022
  • Number of updates: 6
  • Update frequency: every 0.2 days
  • Top authors: imranhosain (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /267 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.35ms] Passed 4 tests

An overview of server-side resources used by Product Isotope Filter for Elementor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0236.47 ▼2.11
Dashboard /wp-admin3.33 ▲0.0242.99 ▼11.61
Posts /wp-admin/edit.php3.38 ▲0.0244.52 ▼0.76
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.06 ▲2.27
Media Library /wp-admin/upload.php3.25 ▲0.0234.83 ▲1.10

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Product Isotope Filter for Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲6113.58 ▼0.721.73 ▼0.4740.03 ▼6.14
Dashboard /wp-admin2,227 ▲395.90 ▲0.85108.66 ▼7.8442.49 ▼4.94
Posts /wp-admin/edit.php2,106 ▲172.02 ▼0.0342.49 ▲4.6637.05 ▲3.38
Add New Post /wp-admin/post-new.php1,541 ▲2223.95 ▲0.98603.69 ▼85.2753.35 ▼6.67
Media Library /wp-admin/upload.php1,406 ▲184.22 ▲0.0596.48 ▼9.3842.87 ▼1.95

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • 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
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/product-isotope-filter-for-elementor/product-isotope-filter-for-elementor.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Requires at least: Invalid plugin version format
You can take inspiration from this readme.txt

product-isotope-filter-for-elementor/product-isotope-filter-for-elementor.php 85% from 13 tests

The main PHP file in "Product Isotope Filter for Elementor" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,259 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP210663686
CSS2647417
JavaScript34234136
SVG10120

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity21.50
▷ Minimum class complexity8.00
▷ Maximum class complexity35.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods19
▷ Static methods15.26%
▷ Public methods1789.47%
▷ Protected methods210.53%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants125.00%
▷ Class constants375.00%
▷ Public constants3100.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