89% filter-posts-by-date-range

Code Review | Filter Posts By Date Range

WordPress plugin Filter Posts By Date Range scored89%from 54 tests.

About plugin

  • Plugin page: filter-posts-by-d...
  • Plugin version: 1.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.8
  • WordPress version: 6.3.1
  • First release: Jul 29, 2018
  • Latest release: Aug 22, 2021
  • Number of updates: 7
  • Update frequency: every 160.7 days
  • Top authors: nikunjsoni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,999 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.57MB] [CPU: ▼30.20ms] Passed 4 tests

This is a short check of server-side resources used by Filter Posts By Date Range
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.78 ▼0.6814.04 ▼29.03
Dashboard /wp-admin3.21 ▼0.1035.05 ▼13.90
Posts /wp-admin/edit.php3.13 ▼0.2227.61 ▼22.23
Add New Post /wp-admin/post-new.php4.60 ▼1.2842.75 ▼55.63
Media Library /wp-admin/upload.php3.24 ▲0.0132.56 ▼1.80

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Filter Posts By Date Range
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲7613.26 ▼1.173.98 ▲1.7737.74 ▼5.89
Dashboard /wp-admin2,214 ▲234.92 ▼0.96102.80 ▲2.2638.55 ▼2.83
Posts /wp-admin/edit.php2,097 ▲82.39 ▲0.3533.73 ▼2.9834.35 ▼0.81
Add New Post /wp-admin/post-new.php1,525 ▼1723.22 ▲5.04663.36 ▲72.4752.12 ▲3.78
Media Library /wp-admin/upload.php1,402 ▲144.35 ▲0.1897.03 ▲2.1844.22 ▲1.03

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Screenshots: Screenshot #1 (Admin page screenshot) image missing
You can take inspiration from this readme.txt

filter-posts-by-date-range/index.php 92% from 13 tests

This is the main PHP file of "Filter Posts By Date Range" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("filter-posts-by-date-range.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin1,241 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS133501,142
PHP2492299

PHP code Passed 2 tests

A brief analysis 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.35
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
14 PNG files occupy 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
css/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%
(invalid) screenshot-1.png165.69KB0.00KB▼ 100.00%
css/images/ui-icons_454545_256x240.png6.83KB4.17KB▼ 38.86%
css/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%