90% pagination-for-pages

Code Review | Pagination for Pages

WordPress plugin Pagination for Pages scored90%from 54 tests.

About plugin

  • Plugin page: pagination-for-pages
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.5.1
  • WordPress version: 6.3.1
  • First release: Nov 12, 2011
  • Latest release: Apr 26, 2013
  • Number of updates: 5
  • Update frequency: every 112.2 days
  • Top authors: mcinvale (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active /4,122 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Pagination for Pages
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0154.51 ▲8.07
Dashboard /wp-admin3.31 ▼0.0354.99 ▼9.03
Posts /wp-admin/edit.php3.36 ▲0.0150.40 ▼8.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.92 ▼25.57
Media Library /wp-admin/upload.php3.24 ▲0.0142.32 ▲2.73

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Pagination for Pages
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.41 ▼0.222.15 ▲0.5641.28 ▼4.48
Dashboard /wp-admin2,195 ▲185.53 ▼0.0393.20 ▲1.6842.74 ▲0.87
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0136.75 ▼5.7734.81 ▼3.02
Add New Post /wp-admin/post-new.php1,526 ▼423.06 ▲0.22671.14 ▼35.0245.57 ▼9.10
Media Library /wp-admin/upload.php1,397 ▼34.25 ▲0.01103.07 ▼8.6843.61 ▼4.79

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === pagination-for-pages === )
Please take inspiration from this readme.txt

pagination-for-pages/pagination-for-pages.php Passed 13 tests

The main PHP script in "Pagination for Pages" version 0.1.1 is automatically included on every request by WordPress
60 characters long description:
Create pagination for pages (or any other custom post type).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected34 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1211134

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin