Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 53.21 ▲0.20 |
Dashboard /wp-admin | 3.46 ▲0.05 | 34.49 ▲1.45 |
Posts /wp-admin/edit.php | 3.69 ▲0.05 | 39.26 ▲1.50 |
Add New Post /wp-admin/post-new.php | 6.94 ▼0.03 | 99.79 ▼1,179.63 |
Media Library /wp-admin/upload.php | 3.34 ▲0.04 | 25.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,795 ▲41 | 15.86 ▲0.23 | 5.93 ▼0.26 | 2.36 ▼0.37 |
Dashboard /wp-admin | 2,892 ▲38 | 6.11 ▲0.02 | 117.12 ▼24.10 | 157.30 ▼7.80 |
Posts /wp-admin/edit.php | 2,694 ▲3 | 3.23 ▲0.00 | 66.78 ▲3.89 | 141.33 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,752 ▲91 | 21.12 ▲4.68 | 440.79 ▲31.91 | 164.26 ▲8.97 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.53 ▲0.03 | 137.02 ▼8.58 | 184.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
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 186 | 299 | 462 |
CSS | 1 | 0 | 0 | 25 |
Bourne Shell | 1 | 7 | 3 | 22 |
XML | 1 | 0 | 0 | 14 |
Markdown | 1 | 13 | 0 | 12 |
JavaScript | 1 | 0 | 0 | 4 |
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 code | 0.17 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 1.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 17 | 32.69% |
▷ Public methods | 49 | 94.23% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.77% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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