10% category-post-urls

Code Review | Category Post URLs

WordPress plugin Category Post URLs scored10%from 54 tests.

About plugin

  • Plugin page: category-post-urls
  • Plugin version: 0.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 9, 2017
  • Latest release: Oct 9, 2017
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: maheshkathiriya (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /718 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/category-post-urls/category-post-urls.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; Category_Post_Urls has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼54.56ms] Passed 4 tests

Server-side resources used by Category Post URLs
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.385.12 ▼41.38
Dashboard /wp-admin2.10 ▼1.216.74 ▼46.99
Posts /wp-admin/edit.php2.10 ▼1.265.35 ▼44.42
Add New Post /wp-admin/post-new.php2.10 ▼3.797.48 ▼85.46
Media Library /wp-admin/upload.php2.10 ▼1.136.83 ▼29.08

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
category_children
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Category Post URLs: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.32 ▼0.912.12 ▲0.1542.94 ▼0.42
Dashboard /wp-admin2,206 ▲215.80 ▲0.91104.02 ▼2.0440.18 ▲2.65
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0338.12 ▲0.4631.96 ▼4.38
Add New Post /wp-admin/post-new.php1,527 ▲822.47 ▼0.70696.28 ▲77.6460.94 ▼7.30
Media Library /wp-admin/upload.php1,388 ▼04.22 ▼0.0296.97 ▼3.6146.34 ▲1.24

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/category-post-urls/category-post-urls.php+12
    Methods with the same name as their class will not be constructors in a future version of PHP; Category_Post_Urls has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • category_children
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 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/category-post-urls/category-post-urls.php:201

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 issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: rewrite rules, custom permalink, category and subcategory permalink, category post urls

category-post-urls/category-post-urls.php 92% from 13 tests

The main PHP script in "Category Post URLs" version 0.01 is automatically included on every request by WordPress
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 215 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin130 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14823130

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin