83% permalinks-to-categorypermalinks

Code Review | Permalinks to Category/Permalinks

WordPress plugin Permalinks to Category/Permalinks scored83%from 54 tests.

About plugin

  • Plugin page: permalinks-to-cat...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.0.1
  • WordPress version: 6.3.1
  • First release: Oct 1, 2012
  • Latest release: Dec 3, 2014
  • Number of updates: 12
  • Update frequency: every 66.1 days
  • Top authors: lordspace (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active /7,141 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by Permalinks to Category/Permalinks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.39 ▼0.88
Dashboard /wp-admin3.31 ▲0.0153.46 ▼1.42
Posts /wp-admin/edit.php3.36 ▲0.0148.47 ▼6.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.21 ▼11.78
Media Library /wp-admin/upload.php3.23 ▲0.0040.92 ▲2.83
Permalinks to Category/Permalinks /wp-admin/options-general.php?page=orbisius_perma2catperma_options_page3.2032.52

Server storage [IO: ▲0.02MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Permalinks to Category/Permalinks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲914.72 ▲0.361.95 ▼0.0144.94 ▼1.10
Dashboard /wp-admin2,199 ▲195.64 ▲0.0192.29 ▲5.2643.09 ▲2.92
Posts /wp-admin/edit.php2,104 ▲41.98 ▼0.0433.33 ▼9.5034.75 ▼1.38
Add New Post /wp-admin/post-new.php1,529 ▲322.95 ▼0.22657.54 ▲6.6960.04 ▼0.86
Media Library /wp-admin/upload.php1,404 ▲74.20 ▼0.0295.49 ▼7.2343.25 ▼0.92
Permalinks to Category/Permalinks /wp-admin/options-general.php?page=orbisius_perma2catperma_options_page1,2864.0085.5438.09

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/permalinks-to-categorypermalinks/plugin.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 20 tag instead of maximum 10
The official readme.txt might help

permalinks-to-categorypermalinks/plugin.php 85% from 13 tests

Analyzing the main PHP file in "Permalinks to Category/Permalinks" version 1.0.2
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("permalinks-to-categorypermalinks.php" instead of "plugin.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 301 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
Success! There were no dangerous files found in this plugin273 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP17063273

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity6.00
▷ Minimum method complexity6.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods1100.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
i/guNzr.qr.2.png0.23KB0.23KB0.43%
i/guNzr.qr.16.png0.39KB0.41KB0.00%