89% admin-post-navigation

Code Review | Admin Post Navigation

WordPress plugin Admin Post Navigation scored 89% from 54 tests.

About plugin

  • Plugin page: admin-post-naviga...
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.9
  • WordPress version: 5.9.2
  • First release: Jun 15, 2009
  • Latest release: Apr 18, 2018
  • Number of updates: 22
  • Update frequency: every 147.6 days
  • Top authors: coffee2code (100%)

Code review

54 tests

User reviews

37 reviews

Install metrics

20,000+ active / 128,699 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼295.47ms] Passed 4 tests

This is a short check of server-side resources used by Admin Post Navigation
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0653.21 ▲0.20
Dashboard /wp-admin3.46 ▲0.0534.49 ▲1.45
Posts /wp-admin/edit.php3.69 ▲0.0539.26 ▲1.50
Add New Post /wp-admin/post-new.php6.94 ▼0.0399.79 ▼1,179.63
Media Library /wp-admin/upload.php3.34 ▲0.0425.69 ▼3.88

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Admin Post Navigation
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,795 ▲4115.86 ▲0.235.93 ▼0.262.36 ▼0.37
Dashboard /wp-admin2,892 ▲386.11 ▲0.02117.12 ▼24.10157.30 ▼7.80
Posts /wp-admin/edit.php2,694 ▲33.23 ▲0.0066.78 ▲3.89141.33 ▼1.62
Add New Post /wp-admin/post-new.php1,752 ▲9121.12 ▲4.68440.79 ▲31.91164.26 ▲8.97
Media Library /wp-admin/upload.php1,698 ▼05.53 ▲0.03137.02 ▼8.58184.69 ▼9.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 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 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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/admin-post-navigation/tests/bootstrap.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/admin-post-navigation/tests/bootstrap.php on line 17
    • > PHP Warning
      require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/admin-post-navigation/tests/bootstrap.php on line 17

User-side errors Passed 1 test

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


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: post, previous, admin, navigation, post types...

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

"Admin Post Navigation" version 2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
97 characters long description:
Adds links to navigate to the next and previous posts when editing a post in the WordPress admin.

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 detected539 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
Bourne Shell17322

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity18.00
▷ Minimum class complexity8.00
▷ Maximum class complexity28.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods1732.69%
▷ Public methods4994.23%
▷ Protected methods00.00%
▷ Private methods35.77%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
There are no PNG files in this plugin