89% wp-pagination

Code Review | jPages pagination for WordPress

WordPress plugin jPages pagination for WordPress scored89%from 54 tests.

About plugin

  • Plugin page: wp-pagination
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.9.1
  • WordPress version: 6.3.1
  • First release: Jan 14, 2014
  • Latest release: Dec 9, 2014
  • Number of updates: 71
  • Update frequency: every 4.7 days
  • Top authors: kishores (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /7,847 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
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼16.01ms] Passed 4 tests

Analyzing server-side resources used by jPages pagination for WordPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0729.55 ▼17.75
Dashboard /wp-admin3.32 ▲0.0249.47 ▼11.03
Posts /wp-admin/edit.php3.37 ▲0.0248.87 ▼9.73
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.78 ▼25.53
Media Library /wp-admin/upload.php3.25 ▲0.0235.34 ▼0.25

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by jPages pagination for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲15513.53 ▼0.6310.88 ▲8.9250.16 ▲6.92
Dashboard /wp-admin2,195 ▲215.59 ▼0.1086.81 ▼25.5541.87 ▼1.52
Posts /wp-admin/edit.php2,100 ▼32.03 ▲0.0538.32 ▼9.5832.24 ▼7.47
Add New Post /wp-admin/post-new.php1,545 ▲1423.46 ▲0.25604.28 ▼21.3760.76 ▲9.94
Media Library /wp-admin/upload.php1,403 ▲124.23 ▼0.1297.12 ▼8.4945.60 ▼2.12

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (A standard WordPress gallery turned into a gallery with pagination.) image required
The official readme.txt might help

wp-pagination/jpages- pagination.php 85% from 13 tests

The main PHP script in "jPages pagination for WordPress" version 1.6 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-pagination.php" instead of "jpages- pagination.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected4,112 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS46711383,539
JavaScript29541491
PHP1283682

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/preload.png0.83KB0.40KB▼ 51.24%