78% pagination

Code Review | Pagination by BestWebSoft - Customizable WordPress Content Splitter and Navigation Plugin

WordPress plugin Pagination by BestWebSoft - Customizable WordPress Content Splitter and Navigation Plugin scored78%from 54 tests.

About plugin

  • Plugin page: pagination
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: May 22, 2015
  • Latest release: Sep 4, 2023
  • Number of updates: 41
  • Update frequency: every 73.9 days
  • Top authors: bestwebsoft (100%)

Code review

54 tests

User reviews

45 reviews

Install metrics

7,000+ active /157,476 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.86MB] [CPU: ▲2.91ms] Passed 4 tests

A check of server-side resources used by Pagination by BestWebSoft - Customizable WordPress Content Splitter and Navigation Plugin
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.35 ▲0.8853.29 ▲9.73
Dashboard /wp-admin4.19 ▲0.8957.40 ▲8.48
Posts /wp-admin/edit.php4.24 ▲0.8955.75 ▲0.84
Add New Post /wp-admin/post-new.php6.73 ▲0.8590.77 ▼6.31
Media Library /wp-admin/upload.php4.05 ▲0.8346.16 ▲8.63

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Pagination by BestWebSoft - Customizable WordPress Content Splitter and Navigation Plugin
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.39 ▲0.022.27 ▲0.5943.31 ▲2.28
Dashboard /wp-admin2,236 ▲595.67 ▲0.0197.79 ▲4.5443.68 ▲3.01
Posts /wp-admin/edit.php2,141 ▲442.02 ▲0.0436.25 ▼3.8433.61 ▼4.00
Add New Post /wp-admin/post-new.php1,558 ▲3223.30 ▲0.26675.96 ▲51.0554.41 ▲8.02
Media Library /wp-admin/upload.php1,435 ▲384.26 ▲0.04103.58 ▼2.9244.35 ▲1.43
BWS Panel /wp-admin/pagination.php?page=pgntn-bws-panel260.420.0714.24
Settings /wp-admin/pagination.php260.420.116.29

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/pagination/bws_menu/product_list.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/pagination/pagination.php:886
    • > PHP Fatal error
      Uncaught Error: Class 'Bws_Settings_Tabs' not found in wp-content/plugins/pagination/includes/class-pgntn-settings.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pagination/bws_menu/class-bws-settings.php:1452

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following user-side errors
    • > GET request to /wp-admin/pagination.php?page=pgntn-bws-panel
    • > Network (severe)
    wp-admin/pagination.php?page=pgntn-bws-panel - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/pagination.php
    • > Network (severe)
    wp-admin/pagination.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Custom pagination block in the front-end - shorthand output.), #2 (Custom pagination block in the front-end with all page numbers.), #3 (Plugin settings in WordPress admin panel.)
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
The official readme.txt might help

pagination/pagination.php Passed 13 tests

The principal PHP file in "Pagination by BestWebSoft - Customizable WordPress Content Splitter and Navigation Plugin" v. 1.2.4 is loaded by WordPress automatically on each request
109 characters long description:
Add customizable pagination to WordPress website. Split long content to multiple pages for better navigation.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected26,786 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
PO File186,17210,44915,396
CSS101552565,382
PHP94746885,286
JavaScript627113572
SVG400150

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity101.67
▷ Minimum class complexity21.00
▷ Maximum class complexity210.00
Average method complexity13.58
▷ Minimum method complexity1.00
▷ Maximum method complexity79.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods1875.00%
▷ Protected methods00.00%
▷ Private methods625.00%
Functions74
▷ Named functions74100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
62 PNG files occupy 3.13MB with 1.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-bg_glass_75_dadada_1x400.png0.31KB0.18KB▼ 39.81%
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-bg_glass_75_e6e6e6_1x400.png0.32KB0.15KB▼ 53.40%
bws_menu/images/close_banner.png0.44KB0.49KB0.00%
bws_menu/css/jquery-ui-styles/1.10.4/images/ui-icons_cd0a0a_256x240.png4.49KB4.20KB▼ 6.46%
bws_menu/css/jquery-ui-styles/1.12.1/images/ui-bg_glass_95_fef1ec_1x400.png0.38KB0.15KB▼ 61.54%