10% post-pagination

Code Review | Post Pagination Module

WordPress plugin Post Pagination Module scored10%from 54 tests.

About plugin

  • Plugin page: post-pagination
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Mar 24, 2014
  • Latest release: Mar 24, 2014
  • Number of updates: 2
  • Update frequency: every 9.0 days
  • Top authors: Nethuestechnologies (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,486 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/post-pagination/post_pagination.php+25
    Methods with the same name as their class will not be constructors in a future version of PHP; AdminPerPageLimits has a deprecated constructor

Server metrics [RAM: ▼2.20MB] [CPU: ▼64.21ms] Passed 4 tests

This is a short check of server-side resources used by Post Pagination Module
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.656.43 ▼44.64
Dashboard /wp-admin2.10 ▼1.536.41 ▼64.44
Posts /wp-admin/edit.php2.10 ▼1.585.45 ▼46.35
Add New Post /wp-admin/post-new.php2.10 ▼4.045.85 ▼101.41
Media Library /wp-admin/upload.php2.10 ▼1.395.25 ▼34.21

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Pagination Module
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.38 ▲0.081.80 ▼0.3339.29 ▼4.04
Dashboard /wp-admin2,192 ▲155.58 ▼0.1083.27 ▼15.9938.74 ▼6.00
Posts /wp-admin/edit.php2,141 ▲412.13 ▲0.1235.40 ▼0.5933.08 ▼3.79
Add New Post /wp-admin/post-new.php1,545 ▲1923.14 ▲5.69585.09 ▼91.0157.78 ▲0.58
Media Library /wp-admin/upload.php1,400 ▼04.19 ▼0.04102.14 ▼4.7544.20 ▼4.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/post-pagination/post_pagination.php+25
    Methods with the same name as their class will not be constructors in a future version of PHP; AdminPerPageLimits has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/post-pagination/post_pagination.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.png shows a new select box named Records Per Page on the posts listing page so that admin can select no of posts to view.) image missing
The official readme.txt might help

post-pagination/post_pagination.php 92% from 13 tests

This is the main PHP file of "Post Pagination Module" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("post-pagination.php" instead of "post_pagination.php")

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
Success! There were no dangerous files found in this plugin132 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11846132

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity4.20
▷ Minimum method complexity2.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png25.19KB15.85KB▼ 37.07%