84% sb-paginate

Code Review | Pagination by HocWP Team

WordPress plugin Pagination by HocWP Team scored 84% from 54 tests.

About plugin

  • Plugin page: sb-paginate
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 6.3.1
  • First release: Sep 9, 2014
  • Latest release: Oct 30, 2017
  • Number of updates: 29
  • Update frequency: every 50.6 days
  • Top authors: skylarkcob (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 9,960 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.22ms] Passed 4 tests

An overview of server-side resources used by Pagination by HocWP Team
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.83 ▼0.91
Dashboard /wp-admin3.33 ▲0.0249.92 ▼2.88
Posts /wp-admin/edit.php3.38 ▲0.0247.70 ▲3.40
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.52 ▲1.27
Media Library /wp-admin/upload.php3.25 ▲0.0237.81 ▲4.12
Pagination /wp-admin/options-general.php?page=hocwp_pagination3.2430.63

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Pagination by HocWP Team: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲12013.29 ▼1.291.78 ▲0.0535.80 ▼5.64
Dashboard /wp-admin2,207 ▲195.80 ▲0.9296.62 ▼10.9639.00 ▼6.02
Posts /wp-admin/edit.php2,093 ▲72.04 ▲0.0334.93 ▼1.5531.00 ▼6.86
Add New Post /wp-admin/post-new.php1,536 ▲2223.20 ▲5.60571.85 ▼41.2363.08 ▲14.93
Media Library /wp-admin/upload.php1,389 ▲14.18 ▼0.0793.70 ▼6.9340.24 ▼5.38
Pagination /wp-admin/options-general.php?page=hocwp_pagination9652.0522.8325.68

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

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 | 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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/sb-paginate/sb-paginate.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/sb-paginate/inc/admin-settings-page.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sb-paginate/inc/backend.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/sb-paginate/inc/frontend.php:171

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

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: hocwp pagination, wp pagination, pagination, pagination plugin, paginate...

sb-paginate/sb-paginate.php 85% from 13 tests

The principal PHP file in "Pagination by HocWP Team" v. 2.0.1 is loaded by WordPress automatically on each request
The following require your attention:
  • 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
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 228 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected575 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP74717369
PO File26984156
CSS17050

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected