90% post-navigator

Code Review | Post Navigator

WordPress plugin Post Navigator scored 90% from 54 tests.

About plugin

  • Plugin page: post-navigator
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.8
  • WordPress version: 6.3.1
  • First release: Jul 15, 2013
  • Latest release: Apr 18, 2014
  • Number of updates: 86
  • Update frequency: every 3.2 days
  • Top authors: hello@lukerollans.me (100%)

Code review

54 tests

User reviews

11 reviews

Install metrics

200+ active / 7,244 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.41ms] Passed 4 tests

This is a short check of server-side resources used by Post Navigator
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.68 ▼3.28
Dashboard /wp-admin3.32 ▲0.0144.41 ▼7.48
Posts /wp-admin/edit.php3.37 ▲0.0146.90 ▲1.49
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.33 ▼0.38
Media Library /wp-admin/upload.php3.24 ▲0.0136.55 ▲4.12
Post Navigator /wp-admin/options-general.php?page=post-navigator-post-types3.2332.06

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Navigator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲8513.65 ▼0.934.46 ▲2.4942.68 ▼0.98
Dashboard /wp-admin2,223 ▲415.85 ▼0.0098.25 ▼8.7437.39 ▼2.12
Posts /wp-admin/edit.php2,108 ▲192.07 ▲0.0341.53 ▲6.5235.68 ▲3.40
Add New Post /wp-admin/post-new.php1,527 ▼1517.72 ▼0.64679.65 ▲53.9254.83 ▼3.54
Media Library /wp-admin/upload.php1,402 ▲114.26 ▼0.0092.96 ▼5.3343.23 ▼1.14
Post Navigator /wp-admin/options-general.php?page=post-navigator-post-types8141.7726.0538.74

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: navigation, posts, next, admin, previous...

post-navigator/init.php 92% from 13 tests

The primary PHP file in "Post Navigator" version 1.3.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-navigator.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin271 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP212945195
JavaScript129047
CSS19229

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity37.00
▷ Minimum class complexity37.00
▷ Maximum class complexity37.00
Average method complexity4.27
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods11
▷ Static methods981.82%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/action.png3.39KB0.67KB▼ 80.11%