10% wp-filter-posts

Code Review | WP Filter Posts - List Posts by Categories, Tags, Authors and dates

WordPress plugin WP Filter Posts - List Posts by Categories, Tags, Authors and dates scored 10% from 54 tests.

About plugin

  • Plugin page: wp-filter-posts
  • Plugin version: 1.1
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.3.1
  • WordPress version: 6.3.1
  • First release: Jun 22, 2017
  • Latest release: Jan 23, 2020
  • Number of updates: 6
  • Update frequency: every 157.7 days
  • Top authors: f1logic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 5,705 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/wp-filter-posts/admin/install.php+80
    Undefined variable: version

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

Analyzing server-side resources used by WP Filter Posts - List Posts by Categories, Tags, Authors and dates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.63 ▼4.42
Dashboard /wp-admin3.32 ▲0.0241.65 ▼9.72
Posts /wp-admin/edit.php3.37 ▲0.0245.82 ▲0.17
Add New Post /wp-admin/post-new.php5.92 ▲0.0483.41 ▼9.74
Media Library /wp-admin/upload.php3.24 ▲0.0234.03 ▼1.31
Add New Filter /wp-admin/admin.php?page=xyz-wpf-filter-add-new3.3830.74
Settings /wp-admin/admin.php?page=xyz-wpf-settings3.2533.92
WP Filter Posts /wp-admin/admin.php?page=xyz-wpf-filter-manage3.3132.70

Server storage [IO: ▲0.21MB] [DB: ▲0.08MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 41 new files
Database: 1 new table, 11 new options
New tables
wp_xyz_wp_posts_filter
New WordPress options
widget_recent-comments
xyz_wpf_credit_dismiss
xyz_wpf_free_version
widget_recent-posts
widget_theysaidso_widget
xyz_credit_link
db_upgraded
can_compress_scripts
theysaidso_admin_options
xyz_wpf_installed_date
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Filter Posts - List Posts by Categories, Tags, Authors and dates
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲10013.67 ▼0.953.70 ▲2.0042.33 ▲3.48
Dashboard /wp-admin2,244 ▲524.87 ▼0.04112.63 ▼1.0056.12 ▲13.60
Posts /wp-admin/edit.php2,127 ▲382.03 ▲0.0236.83 ▼2.3640.83 ▲6.39
Add New Post /wp-admin/post-new.php1,543 ▲1017.48 ▼6.06638.09 ▼45.4453.20 ▲2.96
Media Library /wp-admin/upload.php1,423 ▲354.23 ▼0.0499.83 ▼10.3547.74 ▼0.33
Add New Filter /wp-admin/admin.php?page=xyz-wpf-filter-add-new1,6431.9131.5667.04
Settings /wp-admin/admin.php?page=xyz-wpf-settings1,1151.7525.6045.17
WP Filter Posts /wp-admin/admin.php?page=xyz-wpf-filter-manage1,0871.8725.7849.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 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 detected upon uninstall: 9 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • xyz_credit_link
    • widget_recent-comments
    • xyz_wpf_installed_date
    • widget_recent-posts
    • xyz_wpf_free_version
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

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
These attributes need your attention:
  • Screenshots: Screenshot #1 (Filter configuration screen.) image missing
Please take inspiration from this readme.txt

wp-filter-posts/wp-filter-posts.php 92% from 13 tests

"WP Filter Posts - List Posts by Categories, Tags, Authors and dates" version 1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 550 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin2,840 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP14447362,255
CSS11134573
JavaScript13012

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
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%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
20 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/delete.png1.19KB1.39KB0.00%
admin/images/twitter.png0.98KB0.85KB▼ 13.70%
admin/images/orange_buynow.png7.67KB2.78KB▼ 63.80%
admin/images/facebook.png0.65KB0.65KB▼ 0.75%
admin/images/gplus.png1.06KB0.91KB▼ 13.85%