10% rp-post-nav

Code Review | RP Post Nav

WordPress plugin RP Post Nav scored 10% from 54 tests.

About plugin

  • Plugin page: rp-post-nav
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 6, 2015
  • Latest release: Jul 23, 2015
  • Number of updates: 11
  • Update frequency: every 1.6 days
  • Top authors: rplofino (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,511 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/rp-post-nav/rp-post-nav.php+41
    Use of undefined constant RPPostNav - assumed 'RPPostNav' (this will throw an Error in a future version of PHP)

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.98ms] Passed 4 tests

An overview of server-side resources used by RP Post Nav
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.87 ▼39.59
Dashboard /wp-admin2.05 ▼1.266.47 ▼41.49
Posts /wp-admin/edit.php2.05 ▼1.315.69 ▼44.81
Add New Post /wp-admin/post-new.php2.05 ▼3.846.19 ▼86.03
Media Library /wp-admin/upload.php2.05 ▼1.185.69 ▼30.74
Settings /wp-admin/admin.php?page=rp-post-nav2.055.81
Help /wp-admin/admin.php?page=rp-post-nav-help2.055.74

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
rp_post_nav_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

RP Post Nav: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.63 ▼0.621.72 ▲0.1044.07 ▼3.44
Dashboard /wp-admin2,235 ▲445.82 ▲0.7197.01 ▼2.0639.05 ▼5.53
Posts /wp-admin/edit.php2,118 ▲292.06 ▲0.0139.09 ▼0.1536.92 ▲4.07
Add New Post /wp-admin/post-new.php1,538 ▲1823.36 ▲0.50645.57 ▼31.6054.47 ▼2.31
Media Library /wp-admin/upload.php1,417 ▲354.19 ▲0.0394.31 ▼5.5741.76 ▼2.84
Settings /wp-admin/admin.php?page=rp-post-nav1,2702.0225.9855.69
Help /wp-admin/admin.php?page=rp-post-nav-help8812.1823.5033.23

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Warning in wp-content/plugins/rp-post-nav/rp-post-nav.php+41
    Use of undefined constant RPPostNav - assumed 'RPPostNav' (this will throw an Error in a future version of PHP)
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • rp_post_nav_options
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rp-post-nav-help
    • > Warning in wp-content/plugins/rp-post-nav/rp-post-nav.php+41
    Use of undefined constant RPPostNav - assumed 'RPPostNav' (this will throw an Error in a future version of PHP)

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/rp-post-nav/rp-post-nav.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rp-post-nav/admin/rp-post-nav-admin-options.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rp-post-nav/admin/rp-post-nav-admin-help.php:5

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Add descriptions for screenshots #2, #3, #4 in rp-post-nav/assets to your readme.txt
The official readme.txt is a good inspiration

rp-post-nav/rp-post-nav.php Passed 13 tests

"RP Post Nav" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
100 characters long description:
RP Post Nav display the Next/Previous Post Title, Thumbnail, Excerpt and other custom functionality.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected807 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP34817460
CSS2388347

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.91
Average class complexity106.00
▷ Minimum class complexity106.00
▷ Maximum class complexity106.00
Average method complexity10.55
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/css/images/rp-logo.png1.16KB1.26KB0.00%