90% styles-for-wp-pagenavi-addon

Code Review | Styles For WP Pagenavi Addon - Better design for post pagination

WordPress plugin Styles For WP Pagenavi Addon - Better design for post pagination scored90%from 54 tests.

About plugin

  • Plugin page: styles-for-wp-pag...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.0
  • WordPress version: 6.3.1
  • First release: Oct 2, 2017
  • Latest release: Jun 2, 2022
  • Number of updates: 27
  • Update frequency: every 63.2 days
  • Top authors: wponlinesupport (85.19%)anoopranawat (18.52%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /25,627 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.87ms] Passed 4 tests

This is a short check of server-side resources used by Styles For WP Pagenavi Addon - Better design for post pagination
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.37 ▼11.06
Dashboard /wp-admin3.38 ▲0.0845.22 ▼1.56
Posts /wp-admin/edit.php3.50 ▲0.1449.18 ▼1.72
Add New Post /wp-admin/post-new.php5.96 ▲0.0895.85 ▼5.13
Media Library /wp-admin/upload.php3.30 ▲0.0837.56 ▲3.75
WPOS - Pagenavi /wp-admin/admin.php?page=sfwppa-settings3.3538.07
Upgrade to PRO /wp-admin/admin.php?page=sfwppa-premium3.2831.69

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

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

Browser metrics Passed 4 tests

Styles For WP Pagenavi Addon - Better design for post pagination: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲7313.34 ▼0.964.47 ▲2.5840.52 ▲0.83
Dashboard /wp-admin2,234 ▲435.87 ▼0.01108.78 ▼4.6640.39 ▼1.50
Posts /wp-admin/edit.php2,117 ▲281.99 ▼0.0240.64 ▼1.5637.12 ▼0.89
Add New Post /wp-admin/post-new.php1,556 ▲2223.23 ▼0.04668.14 ▲67.7952.15 ▲2.85
Media Library /wp-admin/upload.php1,416 ▲314.22 ▼0.0194.86 ▼7.3443.24 ▼0.31
WPOS - Pagenavi /wp-admin/admin.php?page=sfwppa-settings1,8674.3376.1126.60
Upgrade to PRO /wp-admin/admin.php?page=sfwppa-premium9212.0622.6838.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention: The official readme.txt might help

styles-for-wp-pagenavi-addon/styles-for-wp-pagenavi-addon.php Passed 13 tests

The primary PHP file in "Styles For WP Pagenavi Addon - Better design for post pagination" version 1.2.1 is used by WordPress to initiate all plugin functionality
117 characters long description:
Adds a more styling options to Wp-PageNavi WordPress plugin OR the_posts_pagination(); WordPress navigation function

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected634 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP6125156546
CSS262172
JavaScript13016

PHP code Passed 2 tests

A brief analysis 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.26
Average class complexity10.00
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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