Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼2.11ms] Passed 4 tests
This is a short check of server-side resources used by WP Post Nav
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 38.60 ▼5.27 |
Dashboard /wp-admin | 3.65 ▲0.35 | 49.86 ▲4.28 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 52.16 ▲8.04 |
Add New Post /wp-admin/post-new.php | 6.16 ▲0.28 | 82.53 ▼12.78 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 38.69 ▲5.32 |
WP Post Nav /wp-admin/options-general.php?page=wp-post-nav | 3.48 | 37.56 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
wp_post_nav_options |
can_compress_scripts |
wp_post_nav_version |
widget_recent-comments |
Browser metrics Passed 4 tests
WP Post Nav: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲198 | 14.64 ▲0.29 | 1.67 ▼0.00 | 41.28 ▲1.70 |
Dashboard /wp-admin | 2,360 ▲186 | 6.37 ▲0.67 | 103.24 ▲14.78 | 36.81 ▼17.08 |
Posts /wp-admin/edit.php | 2,291 ▲191 | 3.54 ▲1.57 | 48.97 ▲12.41 | 31.77 ▼3.30 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.48 ▲0.37 | 651.68 ▼28.96 | 41.42 ▼7.26 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.44 ▲0.25 | 81.52 ▼24.75 | 41.79 ▼3.31 |
WP Post Nav /wp-admin/options-general.php?page=wp-post-nav | 2,180 | 4.48 | 81.81 | 88.16 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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 items
- 7× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wp-post-nav/public/partials/wp-post-nav-public-primary.php
- > /wp-content/plugins/wp-post-nav/public/partials/wp-post-nav-public-page.php
- > /wp-content/plugins/wp-post-nav/admin/partials/wp-post-nav-admin-sidebar.php
- > /wp-content/plugins/wp-post-nav/public/partials/wp-post-nav-public-attachment.php
- > /wp-content/plugins/wp-post-nav/public/partials/wp-post-nav-public-product.php
- > /wp-content/plugins/wp-post-nav/public/partials/wp-post-nav-public-default.php
- > /wp-content/plugins/wp-post-nav/public/partials/wp-post-nav-public-post.php
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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 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
7 plugin tags: navigation, custom post navigation, next nav, previous nav, post navigation...
wp-post-nav/wp-post-nav.php Passed 13 tests
The entry point to "WP Post Nav" version 2.0.3 is a PHP file that has certain tags in its header comment area
98 characters long description:
Wordpress Posts Navigation Plugin. Navigate between posts, pages and custom post types with ease.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected3,242 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 553 | 723 | 2,698 |
CSS | 2 | 78 | 20 | 498 |
JavaScript | 2 | 13 | 32 | 46 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
Average class complexity | 27.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 5.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 37 | 86.05% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 13.95% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/left-arrow.png | 2.92KB | 0.40KB | ▼ 86.37% |
admin/images/logo.png | 13.56KB | 12.36KB | ▼ 8.88% |
public/images/default_fallback.png | 13.56KB | 12.36KB | ▼ 8.88% |
public/images/right-arrow.png | 2.90KB | 0.38KB | ▼ 87.02% |