90% wpnextpreviouslink

Code Review | CBX Next Previous Article

WordPress plugin CBX Next Previous Article scored90%from 54 tests.

About plugin

  • Plugin page: wpnextpreviouslink
  • Plugin version: 2.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2.0
  • WordPress version: 6.3.1
  • First release: Oct 10, 2014
  • Latest release: Jun 23, 2023
  • Number of updates: 48
  • Update frequency: every 66.2 days
  • Top authors: manchumahara (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active /31,776 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.49MB] [CPU: ▼3.74ms] Passed 4 tests

Analyzing server-side resources used by CBX Next Previous Article
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4439.30 ▼8.50
Dashboard /wp-admin3.85 ▲0.5556.93 ▼5.70
Posts /wp-admin/edit.php3.90 ▲0.5553.18 ▲0.39
Add New Post /wp-admin/post-new.php6.39 ▲0.5195.08 ▼1.14
Media Library /wp-admin/upload.php3.71 ▲0.4946.09 ▲10.72
CBX Next Previous /wp-admin/options-general.php?page=wpnextpreviouslink3.7444.04

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 184 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
wpnextpreviouslink_postcats
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
wpnextpreviouslink_ga
wpnextpreviouslink_basics
wpnextpreviouslink_tools
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for CBX Next Previous Article
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.27 ▼0.291.65 ▲0.0041.69 ▲2.94
Dashboard /wp-admin2,202 ▲315.59 ▲0.0683.79 ▼5.1341.87 ▲2.24
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0234.10 ▼3.6334.32 ▼0.08
Add New Post /wp-admin/post-new.php1,532 ▲423.35 ▲0.30685.49 ▲45.5961.73 ▲8.46
Media Library /wp-admin/upload.php1,404 ▲14.17 ▲0.0598.53 ▼9.5441.65 ▼5.32
CBX Next Previous /wp-admin/options-general.php?page=wpnextpreviouslink2,1033.8070.68102.68

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
  • The uninstall procedure has failed, leaving 10 options in the database
    • db_upgraded
    • wpnextpreviouslink_tools
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • wpnextpreviouslink_basics
    • widget_recent-posts
    • widget_recent-comments
    • wpnextpreviouslink_ga
    • wpnextpreviouslink_postcats
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

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
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #1, #10, #11, #12, #2, #3, #4, #5, #6, #7, #8, #9 in wpnextpreviouslink/assets to your readme.txt
The official readme.txt is a good inspiration

wpnextpreviouslink/wpnextpreviouslink.php Passed 13 tests

"CBX Next Previous Article" version 2.7.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
36 characters long description:
WordPress Next Previous Article/Link

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected15,932 lines of code in 131 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript702,5837669,779
Sass32735883,257
PHP165921,1352,102
CSS101187751
SVG20242
HTML1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity33.56
▷ Minimum class complexity1.00
▷ Maximum class complexity177.00
Average method complexity3.88
▷ Minimum method complexity1.00
▷ Maximum method complexity50.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods93
▷ Static methods1010.75%
▷ Public methods8692.47%
▷ Protected methods00.00%
▷ Private methods77.53%
Functions8
▷ Named functions787.50%
▷ Anonymous functions112.50%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
39 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/l_arrow_round.png2.77KB1.88KB▼ 32.19%
assets/images/l_arrow_green.png1.70KB1.49KB▼ 12.04%
assets/images/l_custom.png0.87KB0.88KB0.00%
assets/images/l_arrow_hover.png2.02KB1.83KB▼ 9.29%
assets/images/l_sm_arrow_round.png1.09KB0.90KB▼ 17.28%