78% ultimate-category-excluder

Code Review | Ultimate Category Excluder

WordPress plugin Ultimate Category Excluder scored78%from 54 tests.

About plugin

  • Plugin page: ultimate-category...
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 25, 2011
  • Latest release: Jul 22, 2023
  • Number of updates: 63
  • Update frequency: every 71.9 days
  • Top authors: Marios Alexandrou (58.73%)planetmike (42.86%)

Code review

54 tests

User reviews

73 reviews

Install metrics

50,000+ active /484,290 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼2.29ms] Passed 4 tests

Server-side resources used by Ultimate Category Excluder
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.92 ▼0.75
Dashboard /wp-admin3.35 ▲0.0447.45 ▲1.71
Posts /wp-admin/edit.php3.40 ▲0.0448.02 ▼2.28
Add New Post /wp-admin/post-new.php5.93 ▲0.0495.94 ▼7.83
Media Library /wp-admin/upload.php3.27 ▲0.0436.59 ▲3.50

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
ksuceExcludes
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Ultimate Category Excluder: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.32 ▼1.051.71 ▼0.3141.37 ▼9.11
Dashboard /wp-admin2,207 ▲165.79 ▼0.1195.39 ▼3.2639.27 ▼1.47
Posts /wp-admin/edit.php2,096 ▲42.01 ▼0.0138.79 ▼5.4134.27 ▼1.38
Add New Post /wp-admin/post-new.php1,531 ▼1623.32 ▲5.26655.68 ▲40.7148.25 ▼5.23
Media Library /wp-admin/upload.php1,392 ▲14.19 ▼0.05100.70 ▼2.0741.39 ▼2.80
Category Excluder /wp-admin/ultimate-category-excluder.php260.440.0813.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • ksuceExcludes
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-category-excluder/ultimate-category-excluder.php:33

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/ultimate-category-excluder.php
    • > Network (severe)
    wp-admin/ultimate-category-excluder.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Screenshot #2 (Click on Update to save your selections.) image missing
You can take inspiration from this readme.txt

ultimate-category-excluder/ultimate-category-excluder.php Passed 13 tests

Analyzing the main PHP file in "Ultimate Category Excluder" version 1.7
84 characters long description:
Easily exclude categories from your front page, feeds, archives, and search results.

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
Everything looks great! No dangerous files found in this plugin329 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP13237182
PO File43948147

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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