83% post-filters-by-digitize

Code Review | Post Filters by Digitize

WordPress plugin Post Filters by Digitize scored 83% from 54 tests.

About plugin

  • Plugin page: post-filters-by-d...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.0
  • WordPress version: 5.8.1
  • First release: Feb 17, 2015
  • Latest release: Feb 17, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: vijay.padhariya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 874 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.85MB] [CPU: ▼191.07ms] Passed 4 tests

An overview of server-side resources used by Post Filters by Digitize
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /1.79 ▼0.948.90 ▼9.91
Dashboard /wp-admin1.81 ▼1.2511.04 ▼41.95
Posts /wp-admin/edit.php1.81 ▼1.308.25 ▼36.15
Add New Post /wp-admin/post-new.php1.81 ▼3.635.74 ▼654.92
Media Library /wp-admin/upload.php1.81 ▼1.205.88 ▼31.25

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Post Filters by Digitize
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,866 ▲27016.71 ▲0.8813.19 ▲4.7750.47 ▼4.68
Dashboard /wp-admin2,998 ▲676.18 ▲0.11138.41 ▲0.50117.85 ▲3.13
Posts /wp-admin/edit.php2,794 ▲552.73 ▲0.0567.70 ▼8.88104.56 ▲6.01
Add New Post /wp-admin/post-new.php1,634 ▲5321.47 ▲7.10287.72 ▼86.62126.65 ▲16.17
Media Library /wp-admin/upload.php1,835 ▲285.12 ▲0.09134.51 ▼32.46122.44 ▼7.53

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery-ui handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/post-filters-by-digitize/dg-posts-filter.php

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === post-filters-by-digitize === )
You can take inspiration from this readme.txt

post-filters-by-digitize/dg-posts-filter.php 85% from 13 tests

This is the main PHP file of "Post Filters by Digitize" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("post-filters-by-digitize.php" instead of "dg-posts-filter.php")

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
There were no executable files found in this plugin693 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS12232596
PHP1112179
JavaScript121018

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_glass_55_fbf9ee_1x400.png0.33KB0.12KB▼ 62.09%
css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
css/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
css/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
css/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%