94% remove-category-word-from-title

Code Review | Remove Category Word From Title

WordPress plugin Remove Category Word From Title scored 94% from 54 tests.

About plugin

  • Plugin page: remove-category-w...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.3
  • WordPress version: 5.8.1
  • First release: Apr 11, 2017
  • Latest release: Apr 7, 2017
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: ausafmalik89 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active / 4,966 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Remove Category Word From Title
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1235.80 ▲13.01
Dashboard /wp-admin3.07 ▲0.0158.27 ▲12.59
Posts /wp-admin/edit.php3.12 ▼0.0048.90 ▼9.02
Add New Post /wp-admin/post-new.php5.42 ▼0.01103.72 ▼678.40
Media Library /wp-admin/upload.php3.01 ▲0.0033.87 ▼4.23

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Remove Category Word From Title: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲4216.02 ▲0.3210.94 ▲0.7750.13 ▼2.71
Dashboard /wp-admin2,967 ▲365.85 ▼0.13145.86 ▼7.64113.12 ▼5.58
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0064.87 ▼2.4491.90 ▼12.42
Add New Post /wp-admin/post-new.php1,604 ▲10418.44 ▼0.38402.51 ▲13.20116.91 ▲3.75
Media Library /wp-admin/upload.php1,807 ▼05.01 ▲0.01159.26 ▲4.15123.74 ▼10.94

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at 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_filter() in wp-content/plugins/remove-category-word-from-title/inc/rcft-functions.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: remove title, remove category, how to remove category, category

remove-category-word-from-title/remove-category-word-from-title.php Passed 13 tests

Analyzing the main PHP file in "Remove Category Word From Title" version 1.0.0
82 characters long description:
This plugin allows the admin to hide the word 'Category' from all the page titles.

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
Good job! No executable or dangerous file extensions detected19 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2131119

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin