84% category-title-prefix

Code Review | Category Title Prefix

WordPress plugin Category Title Prefix scored 84% from 54 tests.

About plugin

  • Plugin page: category-title-pr...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.1
  • WordPress version: 6.3.1
  • First release: May 28, 2014
  • Latest release: May 28, 2014
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: thatposhgirl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,024 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.03ms] Passed 4 tests

This is a short check of server-side resources used by Category Title Prefix
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.42 ▼0.0431.08 ▼16.63
Dashboard /wp-admin3.31 ▲0.0045.83 ▼0.79
Posts /wp-admin/edit.php3.36 ▲0.0042.83 ▼7.10
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.09 ▼7.59
Media Library /wp-admin/upload.php3.23 ▲0.0039.63 ▲4.13

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

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

Browser metrics Passed 4 tests

Category Title Prefix: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼1.044.75 ▲2.7738.90 ▼1.01
Dashboard /wp-admin2,203 ▲125.85 ▲0.04105.46 ▲1.2641.47 ▼2.03
Posts /wp-admin/edit.php2,086 ▼31.97 ▼0.0939.25 ▼4.2535.15 ▼1.45
Add New Post /wp-admin/post-new.php1,547 ▲3318.08 ▼5.40641.74 ▲37.2374.67 ▲25.69
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.14110.75 ▲9.2545.29 ▲1.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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 everything seems fine, this is not an exhaustive test

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/category-title-prefix/rw-ctp-category-title-prefix.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: post title, category

category-title-prefix/rw-ctp-category-title-prefix.php 85% from 13 tests

This is the main PHP file of "Category Title Prefix" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("category-title-prefix.php" instead of "rw-ctp-category-title-prefix.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 296 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected15 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191715

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin