84% keep-pagination-in-same-taxonomy

Code Review | Keep Pagination in Same Taxonomy

WordPress plugin Keep Pagination in Same Taxonomy scored84%from 54 tests.

About plugin

  • Plugin page: keep-pagination-i...
  • Plugin version: 0.13
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 30, 2019
  • Latest release: Nov 8, 2023
  • Number of updates: 6
  • Update frequency: every 245.0 days
  • Top authors: keith_wp (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /705 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.73ms] Passed 4 tests

An overview of server-side resources used by Keep Pagination in Same Taxonomy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.41 ▼3.95
Dashboard /wp-admin3.36 ▲0.0543.18 ▼7.56
Posts /wp-admin/edit.php3.41 ▲0.0548.56 ▼3.51
Add New Post /wp-admin/post-new.php5.94 ▲0.0580.75 ▼3.88
Media Library /wp-admin/upload.php3.28 ▲0.0535.43 ▲1.96

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Keep Pagination in Same Taxonomy
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.57 ▲0.171.60 ▼0.2238.48 ▼1.79
Dashboard /wp-admin2,192 ▲175.61 ▼0.0696.42 ▼10.1742.49 ▲5.16
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0141.20 ▲3.2435.32 ▼6.10
Add New Post /wp-admin/post-new.php1,526 ▼323.59 ▼0.17669.17 ▼8.4358.72 ▼6.30
Media Library /wp-admin/upload.php1,400 ▲64.20 ▼0.07100.93 ▲0.2040.66 ▼3.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/keep-pagination-in-same-taxonomy/keep-pagination-in-same-taxonomy.php:13

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Requires at least: Version format is invalid
You can look at the official readme.txt

keep-pagination-in-same-taxonomy/keep-pagination-in-same-taxonomy.php 92% from 13 tests

The entry point to "Keep Pagination in Same Taxonomy" version 0.13 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin132 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15511132

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.42
Average class complexity30.00
▷ Minimum class complexity30.00
▷ Maximum class complexity30.00
Average method complexity3.90
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin