84% custom-pagination-permalinks

Code Review | Custom Pagination Permalinks

WordPress plugin Custom Pagination Permalinks scored84%from 54 tests.

About plugin

  • Plugin page: custom-pagination...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.2-4.3
  • WordPress version: 6.3.1
  • First release: Apr 10, 2015
  • Latest release: Aug 31, 2015
  • Number of updates: 9
  • Update frequency: every 15.9 days
  • Top authors: pauiglesias (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,656 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.01MB] [CPU: ▼4.27ms] Passed 4 tests

This is a short check of server-side resources used by Custom Pagination Permalinks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.94 ▲1.48
Dashboard /wp-admin3.32 ▲0.0144.23 ▼4.10
Posts /wp-admin/edit.php3.43 ▲0.0746.27 ▼2.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.59 ▼12.20
Media Library /wp-admin/upload.php3.24 ▲0.0134.36 ▲1.96
Custom Pagination Permalinks /wp-admin/options-general.php?page=custom-pagination-permalinks3.1825.97

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Custom Pagination Permalinks
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.67 ▼0.503.95 ▲2.0339.66 ▼4.12
Dashboard /wp-admin2,210 ▲195.86 ▼0.04111.65 ▼4.2041.89 ▼1.04
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0535.72 ▼4.4531.02 ▼5.19
Add New Post /wp-admin/post-new.php1,541 ▲823.13 ▼0.06642.28 ▼50.2970.87 ▲7.18
Media Library /wp-admin/upload.php1,392 ▲104.24 ▲0.0597.74 ▼3.1943.45 ▼0.53
Custom Pagination Permalinks /wp-admin/options-general.php?page=custom-pagination-permalinks9732.0526.6853.51

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • be_cpp_active
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=custom-pagination-permalinks
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=custom-pagination-permalinks
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

custom-pagination-permalinks/custom-pagination-permalinks.php Passed 13 tests

The main file in "Custom Pagination Permalinks" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
94 characters long description:
Custom listing pagination URLs instead default WordPress permalinks like "[..]/page/[number]/"

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
Everything looks great! No dangerous files found in this plugin382 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1196149259
PO File12325123

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.55
Average class complexity76.00
▷ Minimum class complexity76.00
▷ Maximum class complexity76.00
Average method complexity5.17
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods633.33%
▷ Public methods1161.11%
▷ Protected methods00.00%
▷ Private methods738.89%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants00.00%
▷ Class constants8100.00%
▷ Public constants8100.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
PNG images were not found in this plugin