83% post-category-prev-next-link-fix

Code Review | Post Category Prev-Next Link Fix

WordPress plugin Post Category Prev-Next Link Fix scored83%from 54 tests.

About plugin

  • Plugin page: post-category-pre...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Feb 8, 2018
  • Latest release: Mar 30, 2023
  • Number of updates: 11
  • Update frequency: every 170.7 days
  • Top authors: ketanambaliya (72.73%)ketanprajapati (36.36%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /6,181 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.03MB] [CPU: ▼3.46ms] Passed 4 tests

A check of server-side resources used by Post Category Prev-Next Link Fix
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.30 ▼0.34
Dashboard /wp-admin3.34 ▲0.0347.18 ▼8.56
Posts /wp-admin/edit.php3.39 ▲0.0352.08 ▲2.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0385.83 ▼7.19
Media Library /wp-admin/upload.php3.26 ▲0.0338.04 ▲4.11

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Category Prev-Next Link Fix
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.27 ▼0.081.58 ▼0.0740.77 ▼0.93
Dashboard /wp-admin2,198 ▲185.59 ▼0.0687.43 ▼8.0840.64 ▼2.21
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0139.60 ▼2.2137.54 ▲0.15
Add New Post /wp-admin/post-new.php1,537 ▲1118.25 ▼5.42646.66 ▼47.1772.59 ▲14.40
Media Library /wp-admin/upload.php1,403 ▼04.19 ▼0.0297.46 ▼10.3443.31 ▼2.40

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at 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/post-category-prev-next-link-fix/post-category-prev-next.php:39

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 errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% 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:
  • Requires at least: Invalid version format
  • Requires php: Invalid version format
Please take inspiration from this readme.txt

post-category-prev-next-link-fix/post-category-prev-next.php 85% from 13 tests

"Post Category Prev-Next Link Fix" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("post-category-prev-next-link-fix.php" instead of "post-category-prev-next.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 197 characters long)

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
No dangerous file extensions were detected76 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1282976

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin