WordPress plugin Post Filter scored83%from 54 tests.

About plugin

  • Plugin page: post-filter-filte...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Sep 3, 2019
  • Latest release: Oct 27, 2019
  • Number of updates: 12
  • Update frequency: every 4.7 days
  • Top authors: cupcode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼6.58ms] Passed 4 tests

Analyzing server-side resources used by Post Filter
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0544.93 ▲4.62
Dashboard /wp-admin3.36 ▲0.0652.55 ▼0.51
Posts /wp-admin/edit.php3.41 ▲0.0650.29 ▲1.00
Add New Post /wp-admin/post-new.php5.94 ▲0.0691.47 ▼24.91
Media Library /wp-admin/upload.php3.28 ▲0.0639.66 ▼1.90
Post Filter /wp-admin/admin.php?page=post-filter-plugin-options3.2535.66
Donate /wp-admin/admin.php?page=post-filter-about3.2732.85

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Filter
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,862 ▲10113.21 ▼1.011.66 ▼0.3246.04 ▼0.22
Dashboard /wp-admin2,271 ▲655.84 ▲0.96102.56 ▼17.2936.94 ▼7.13
Posts /wp-admin/edit.php2,126 ▲472.00 ▼0.0438.02 ▼3.1636.36 ▲3.19
Add New Post /wp-admin/post-new.php1,583 ▲5123.39 ▼0.09630.92 ▼15.3967.38 ▼4.17
Media Library /wp-admin/upload.php1,447 ▲504.23 ▲0.00106.16 ▼21.4048.24 ▼2.60
Post Filter /wp-admin/admin.php?page=post-filter-plugin-options9881.8333.9944.59
Donate /wp-admin/admin.php?page=post-filter-about9302.0526.4334.79

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

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)
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/post-filter-filter-any-contents-with-specific-words/pf-about.php
    • > /wp-content/plugins/post-filter-filter-any-contents-with-specific-words/cupcode-options.php
    • > /wp-content/plugins/post-filter-filter-any-contents-with-specific-words/cupcode-post-filter.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: You can take inspiration from this readme.txt

post-filter-filter-any-contents-with-specific-words/cupcode-post-filter.php 85% from 13 tests

"Post Filter" version 1.1.0'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:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("post-filter-filter-any-contents-with-specific-words.php" instead of "cupcode-post-filter.php")
  • 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 | 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 plugin512 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP35914261
JavaScript214093
CSS235491
PO File1284067

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
3 PNG files occupy 0.11MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-256x256.png2.14KB0.93KB▼ 56.42%
assets/banner-772x250.png92.47KB57.88KB▼ 37.41%
assets/screenshot-1.png19.78KB10.01KB▼ 49.39%