Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WPPostNavigator::reset_default_post_navigation_button_link() should not be called statically
Server metrics [RAM: ▼0.90MB] [CPU: ▼35.48ms] Passed 4 tests
Analyzing server-side resources used by WP Post Navigator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 30.24 ▼10.30 |
Dashboard /wp-admin | 3.05 ▼0.30 | 21.71 ▼39.90 |
Posts /wp-admin/edit.php | 3.05 ▼0.31 | 22.96 ▼17.86 |
Add New Post /wp-admin/post-new.php | 3.05 ▼2.84 | 26.29 ▼71.94 |
Media Library /wp-admin/upload.php | 3.05 ▼0.18 | 23.55 ▼12.22 |
WP Post Navigator /wp-admin/options-general.php?page=wordpress_post_navigation_button | 3.05 | 24.24 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 12 new options
New WordPress options |
---|
post_credits |
post_navigation_image_link |
widget_recent-posts |
widget_recent-comments |
post_credits_nofollow_new |
db_upgraded |
widget_theysaidso_widget |
post_credit_text_new |
theysaidso_admin_options |
post_credit_link |
... |
Browser metrics Passed 4 tests
Checking browser requirements for WP Post Navigator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.31 ▼1.08 | 1.67 ▼0.20 | 42.06 ▲0.71 |
Dashboard /wp-admin | 2,210 ▲22 | 5.93 ▲0.03 | 97.35 ▼2.48 | 39.29 ▼4.24 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.98 ▼0.01 | 40.77 ▲4.37 | 35.11 ▼0.09 |
Add New Post /wp-admin/post-new.php | 1,536 ▲22 | 23.18 ▲5.69 | 649.99 ▼8.43 | 55.73 ▲2.53 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.26 ▲0.08 | 94.68 ▼1.05 | 39.76 ▼3.83 |
WP Post Navigator /wp-admin/options-general.php?page=wordpress_post_navigation_button | 947 | 1.72 | 26.18 | 44.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WPPostNavigator::admin_menu_post_navigation_button_link() should not be called statically
- Zombie WordPress options were found after uninstall: 12 options
- post_credits_nofollow_new
- post_credits_defaults_new
- post_credit_text_new
- widget_theysaidso_widget
- post_credits
- db_upgraded
- widget_recent-comments
- post_credit_link
- post_navigation_image_link
- theysaidso_admin_options
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wordpress_post_navigation_button
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WPPostNavigator::admin_menu_post_navigation_button_link() should not be called statically
- > GET request to /wp-admin/options-general.php?page=wordpress_post_navigation_button
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WPPostNavigator::register_setting_post_navigation_button_link() should not be called statically
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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-navigator/wppostnavigator.php:186
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please specify the plugin name on the first line (
=== wp-post-navigator ===
) - Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-post-navigator/wppostnavigator.php 85% from 13 tests
The entry point to "WP Post Navigator" version 1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-post-navigator.php" instead of "wppostnavigator.php")
- Description: The description should be shorter than 140 characters (currently 243 characters long)
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
Everything looks great! No dangerous files found in this plugin589 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 48 | 16 | 365 |
CSS | 1 | 36 | 0 | 224 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/favicon.png | 19.01KB | 6.16KB | ▼ 67.58% |
assets/type1/5.png | 0.67KB | 0.48KB | ▼ 28.51% |
assets/type1/7.png | 0.75KB | 0.41KB | ▼ 44.50% |
assets/type1/1.png | 0.71KB | 0.49KB | ▼ 30.59% |
assets/type1/4.png | 0.94KB | 0.54KB | ▼ 42.99% |