89% custom-post-type-filters-for-users-insights

Code Review | Custom Post Type Filters For Users Insights

WordPress plugin Custom Post Type Filters For Users Insights scored89%from 54 tests.

About plugin

  • Plugin page: custom-post-type-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.9
  • WordPress version: 6.3.1
  • First release: Mar 3, 2017
  • Latest release: Feb 9, 2022
  • Number of updates: 9
  • Update frequency: every 200.3 days
  • Top authors: denizz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,202 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.35ms] Passed 4 tests

A check of server-side resources used by Custom Post Type Filters For Users Insights
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.46 ▼7.44
Dashboard /wp-admin3.31 ▲0.0146.49 ▲0.24
Posts /wp-admin/edit.php3.36 ▲0.0047.82 ▼3.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.83 ▼5.05
Media Library /wp-admin/upload.php3.23 ▲0.0035.72 ▼1.74

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Custom Post Type Filters For Users Insights
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6214.74 ▲0.391.90 ▲0.0949.12 ▲2.91
Dashboard /wp-admin2,204 ▲245.62 ▼0.0592.75 ▼7.2545.01 ▼1.67
Posts /wp-admin/edit.php2,107 ▲101.98 ▲0.0137.46 ▼0.6238.82 ▲2.37
Add New Post /wp-admin/post-new.php1,535 ▲1823.82 ▲4.76619.61 ▲186.6699.98 ▲51.07
Media Library /wp-admin/upload.php1,412 ▲94.16 ▼0.0595.44 ▼8.0643.25 ▲1.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

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
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: There are too many tags (12 tag instead of maximum 10)
You can take inspiration from this readme.txt

custom-post-type-filters-for-users-insights/custom-post-type-filters-for-users-insights.php 92% from 13 tests

The main file in "Custom Post Type Filters For Users Insights" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)

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
No dangerous file extensions were detected282 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP48053275
CSS1107

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.75
▷ Minimum class complexity6.00
▷ Maximum class complexity11.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods417.39%
▷ Public methods1773.91%
▷ Protected methods626.09%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin