84% fast-fancy-filter-3f

Code Review | Fast & Fancy Filter - 3F

WordPress plugin Fast & Fancy Filter - 3F scored84%from 54 tests.

About plugin

  • Plugin page: fast-fancy-filter-3f
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.7
  • WordPress version: 6.3.1
  • First release: Mar 20, 2021
  • Latest release: Jun 22, 2021
  • Number of updates: 6
  • Update frequency: every 15.8 days
  • Top authors: webarea (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /935 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.16MB] [CPU: ▼5.23ms] Passed 4 tests

An overview of server-side resources used by Fast & Fancy Filter - 3F
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0644.00 ▲1.40
Dashboard /wp-admin3.48 ▲0.1852.61 ▼6.34
Posts /wp-admin/edit.php3.60 ▲0.2452.23 ▲2.65
Add New Post /wp-admin/post-new.php6.13 ▲0.2489.44 ▼17.31
Media Library /wp-admin/upload.php3.41 ▲0.1740.14 ▲1.32
General settings /wp-admin/admin.php?page=fff-settings-general-page3.3837.65
3F Filters /wp-admin/admin.php?page=fff-settings-page3.3934.19

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fast & Fancy Filter - 3F
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,968 ▲20719.16 ▲4.44126.48 ▲124.7544.04 ▲1.48
Dashboard /wp-admin2,229 ▲555.58 ▼0.0383.59 ▼14.8280.30 ▲33.87
Posts /wp-admin/edit.php2,152 ▲521.99 ▼0.0239.37 ▲2.0135.16 ▼3.83
Add New Post /wp-admin/post-new.php1,571 ▲4523.11 ▼0.01662.96 ▼4.3658.35 ▲0.37
Media Library /wp-admin/upload.php1,449 ▲554.20 ▼0.0298.21 ▼14.4370.09 ▲21.94
General settings /wp-admin/admin.php?page=fff-settings-general-page1,2375.79113.6434.87
3F Filters /wp-admin/admin.php?page=fff-settings-page1,0515.6488.9125.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/fast-fancy-filter-3f/includes/admin/templates/all-filters.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/fast-fancy-filter-3f/includes/admin/templates/new-filter.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: posts, ajax filter, post, api filter, post filter...

fast-fancy-filter-3f/fast-fancy-filter-3f.php 92% from 13 tests

Analyzing the main PHP file in "Fast & Fancy Filter - 3F" version 1.2.2
The following require your attention:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,637 lines of code in 37 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript134522031,682
PHP611870971
CSS3146889
SVG110353
JSON40042

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity44.00
▷ Minimum class complexity4.00
▷ Maximum class complexity119.00
Average method complexity6.16
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes133.33%
Methods26
▷ Static methods27.69%
▷ Public methods2388.46%
▷ Protected methods00.00%
▷ Private methods311.54%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants8
▷ Global constants8100.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