62% wp-post-navigation

Code Review | WP Post Navigation

WordPress plugin WP Post Navigation scored62%from 54 tests.

About plugin

  • Plugin page: wp-post-navigation
  • Plugin version: 1.2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.7.4
  • WordPress version: 6.3.1
  • First release: Apr 6, 2013
  • Latest release: Apr 24, 2017
  • Number of updates: 12
  • Update frequency: every 123.3 days
  • Top authors: sharpcoders (100%)

Code review

54 tests

User reviews

26 reviews

Install metrics

3,000+ active /52,501 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.90MB] [CPU: ▼30.22ms] Passed 4 tests

A check of server-side resources used by WP Post Navigation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.17 ▼5.30
Dashboard /wp-admin3.04 ▼0.2623.53 ▼24.24
Posts /wp-admin/edit.php3.04 ▼0.3123.34 ▼21.26
Add New Post /wp-admin/post-new.php3.04 ▼2.8422.68 ▼66.31
Media Library /wp-admin/upload.php3.04 ▼0.1825.79 ▼9.08

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Post Navigation
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.20 ▼1.481.68 ▼0.0543.41 ▼0.88
Dashboard /wp-admin2,207 ▲195.83 ▲0.8994.63 ▼7.8238.13 ▼5.69
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0134.36 ▼1.8838.00 ▲0.78
Add New Post /wp-admin/post-new.php1,536 ▲2223.25 ▲5.59656.76 ▼28.9961.18 ▲3.87
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0296.28 ▼17.5542.29 ▼8.17
WP Post Navigation /wp-admin/wp-post-navigation.php260.440.0814.04

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • wp_post_navigation_options
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wp-post-navigation/wp-post-navigation.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-post-navigation/wp-post-navigation-admin-options.php:91
    • > PHP Notice
      Undefined variable: action_url in wp-content/plugins/wp-post-navigation/wp-post-navigation-admin-options.php on line 89

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
    • > GET request to /wp-admin/wp-post-navigation.php
    • > Network (severe)
    wp-admin/wp-post-navigation.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Admin Panel Setting), #2 (WP Post Navigation)
The official readme.txt might help

wp-post-navigation/wp-post-navigation.php Passed 13 tests

The principal PHP file in "WP Post Navigation" v. 1.2.4 is loaded by WordPress automatically on each request
43 characters long description:
Show Previous and Next Post Links at Posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected484 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22310429
CSS10055

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.93
Average class complexity64.00
▷ Minimum class complexity64.00
▷ Maximum class complexity64.00
Average method complexity8.00
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png42.17KB21.03KB▼ 50.14%
screenshot-3.png36.82KB16.41KB▼ 55.44%
screenshot-2.png16.59KB4.82KB▼ 70.96%