10% responsive-pagination

Code Review | Responsive Pagination

WordPress plugin Responsive Pagination scored 10% from 54 tests.

About plugin

  • Plugin page: responsive-pagina...
  • Plugin version: 1.4.1
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.0-5.8
  • WordPress version: 5.8.1
  • First release: May 20, 2020
  • Latest release: Jul 23, 2021
  • Number of updates: 21
  • Update frequency: every 20.7 days
  • Top authors: responsivepaginationdev (66.67%)sasikirono (33.33%)priyabagus (9.52%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 533 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/responsive-pagination/src/WP/Plugin/PackageInitializer.php+13
    Non-static method ResponsivePagination\WP\Plugin\PackageInitializer::registerPackage() should not be called statically

Server metrics [RAM: ▼1.85MB] [CPU: ▼195.32ms] Passed 4 tests

This is a short check of server-side resources used by Responsive Pagination
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.77 ▼0.955.89 ▼23.61
Dashboard /wp-admin1.80 ▼1.265.12 ▼39.33
Posts /wp-admin/edit.php1.80 ▼1.326.20 ▼52.24
Add New Post /wp-admin/post-new.php1.80 ▼3.644.52 ▼658.44
Media Library /wp-admin/upload.php1.80 ▼1.205.77 ▼31.27

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 2 new options
New WordPress options
respg_stored_converted_elements
respg_pagination_settings

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive Pagination
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,828 ▲20516.44 ▲0.9020.29 ▲11.7050.14 ▼4.55
Dashboard /wp-admin2,978 ▲445.90 ▼0.12145.49 ▼29.11117.68 ▲2.51
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0164.49 ▼4.3092.50 ▼8.74
Add New Post /wp-admin/post-new.php1,875 ▲37719.15 ▲0.32390.00 ▲2.91111.42 ▲2.57
Media Library /wp-admin/upload.php1,812 ▲25.05 ▲0.05166.29 ▲10.38127.48 ▼0.04
Responsive Pagination /wp-admin/responsive-pagination.php260.900.0711.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/responsive-pagination/src/WP/Plugin/PackageInitializer.php+13
    Non-static method ResponsivePagination\WP\Plugin\PackageInitializer::registerPackage() should not be called statically
  • Zombie WordPress options were found after uninstall: 2 options
    • respg_pagination_settings
    • respg_stored_converted_elements

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'ResponsivePagination\\WP\\Base\\Main' not found in wp-content/plugins/responsive-pagination/src/WP/Plugin/Main.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'ResponsivePagination\\WP\\Base\\ActionHooks' not found in wp-content/plugins/responsive-pagination/src/WP/Plugin/ActionHooks.php:11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/responsive-pagination/src/WP/Base/Admin/View/layout.php:4

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/responsive-pagination.php
    • > Network (severe)
    wp-admin/responsive-pagination.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: responsive, pagination, mobile

responsive-pagination/responsive-pagination.php Passed 13 tests

This is the main PHP file of "Responsive Pagination" version 1.4.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
111 characters long description:
Configure your pagination to adapt to different screen size like phones, tablets, desktops, and larger screens.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,613 lines of code in 38 files:
LanguageFilesBlank linesComment linesLines of code
PHP292512801,354
JavaScript6019256
CSS3003

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.29
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity2.19
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes24
▷ Abstract classes00.00%
▷ Concrete classes24100.00%
▷ Final classes00.00%
Methods86
▷ Static methods3136.05%
▷ Public methods4754.65%
▷ Protected methods2933.72%
▷ Private methods1011.63%
Functions18
▷ Named functions422.22%
▷ Anonymous functions1477.78%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin