Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.44ms] Passed 4 tests
A check of server-side resources used by Loop Post Navigation Links
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.14 ▼3.68 |
Dashboard /wp-admin | 3.32 ▲0.02 | 58.80 ▲7.97 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.07 ▼4.36 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.00 ▼6.37 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.98 ▲0.66 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Loop Post Navigation Links
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.54 ▼0.73 | 1.77 ▼0.05 | 44.41 ▲1.52 |
Dashboard /wp-admin | 2,206 ▲18 | 4.87 ▼0.04 | 102.76 ▼13.29 | 37.61 ▼10.59 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.99 ▼0.04 | 35.50 ▲0.32 | 35.84 ▲0.18 |
Add New Post /wp-admin/post-new.php | 1,533 ▲11 | 22.98 ▼0.06 | 666.31 ▲15.33 | 54.93 ▲4.92 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.23 ▲0.01 | 95.67 ▼9.39 | 43.76 ▼0.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/loop-post-navigation-links/phpunit/bootstrap.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/loop-post-navigation-links/phpunit/bootstrap.php on line 17
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/tests/phpunit/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/loop-post-navigation-links/phpunit/bootstrap.php on line 17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
9 plugin tags: portfolio, next, links, navigation, previous_post_link...
loop-post-navigation-links/loop-post-navigation-links.php Passed 13 tests
"Loop Post Navigation Links" version 3.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
136 characters long description:
Template tags (for single.php) to create post navigation loop (previous to first post is last post; next/after last post is first post).
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
Good job! No executable or dangerous file extensions detected614 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 141 | 346 | 377 |
Markdown | 3 | 40 | 0 | 202 |
Bourne Shell | 1 | 6 | 2 | 21 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 34 | |
▷ Static methods | 3 | 8.82% |
▷ Public methods | 30 | 88.24% |
▷ Protected methods | 4 | 11.76% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 15 | 78.95% |
▷ Anonymous functions | 4 | 21.05% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin