90% filter-post-types-by-taxonomy

Code Review | Filter Post Types by Taxonomy

WordPress plugin Filter Post Types by Taxonomy scored 90% from 54 tests.

About plugin

  • Plugin page: filter-post-types...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.5
  • WordPress version: 6.3.1
  • First release: Sep 2, 2015
  • Latest release: Sep 2, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: iamntz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active / 1,102 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.02MB] [CPU: ▲1.34ms] Passed 4 tests

Analyzing server-side resources used by Filter Post Types by Taxonomy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.29 ▲1.75
Dashboard /wp-admin3.33 ▲0.0253.53 ▼7.72
Posts /wp-admin/edit.php3.38 ▲0.0269.96 ▲15.33
Add New Post /wp-admin/post-new.php5.91 ▲0.02104.82 ▲13.03
Media Library /wp-admin/upload.php3.25 ▲0.0238.24 ▼1.69

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Filter Post Types by Taxonomy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1113.30 ▼1.184.37 ▲2.4641.81 ▼7.40
Dashboard /wp-admin2,206 ▼04.85 ▼1.01109.23 ▲5.9042.75 ▲3.28
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0440.33 ▲0.2637.79 ▲1.91
Add New Post /wp-admin/post-new.php1,530 ▼423.55 ▲0.28673.12 ▼50.2551.47 ▼2.96
Media Library /wp-admin/upload.php1,388 ▼04.20 ▼0.0395.49 ▼21.6242.53 ▼2.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: taxonomies, filtering, admin

filter-post-types-by-taxonomy/index.php 92% from 13 tests

This is the main PHP file of "Filter Post Types by Taxonomy" 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
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("filter-post-types-by-taxonomy.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin94 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2251494

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity3.17
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods350.00%
▷ Protected methods350.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin