Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Warning in wp-content/plugins/rp-post-nav/rp-post-nav.php+41
Use of undefined constant RPPostNav - assumed 'RPPostNav' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.98ms] Passed 4 tests
An overview of server-side resources used by RP Post Nav
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.87 ▼39.59 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.47 ▼41.49 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.69 ▼44.81 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.19 ▼86.03 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.69 ▼30.74 |
Settings /wp-admin/admin.php?page=rp-post-nav | 2.05 | 5.81 |
Help /wp-admin/admin.php?page=rp-post-nav-help | 2.05 | 5.74 |
Server storage [IO: ▲0.74MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
rp_post_nav_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
RP Post Nav: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 13.63 ▼0.62 | 1.72 ▲0.10 | 44.07 ▼3.44 |
Dashboard /wp-admin | 2,235 ▲44 | 5.82 ▲0.71 | 97.01 ▼2.06 | 39.05 ▼5.53 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.06 ▲0.01 | 39.09 ▼0.15 | 36.92 ▲4.07 |
Add New Post /wp-admin/post-new.php | 1,538 ▲18 | 23.36 ▲0.50 | 645.57 ▼31.60 | 54.47 ▼2.31 |
Media Library /wp-admin/upload.php | 1,417 ▲35 | 4.19 ▲0.03 | 94.31 ▼5.57 | 41.76 ▼2.84 |
Settings /wp-admin/admin.php?page=rp-post-nav | 1,270 | 2.02 | 25.98 | 55.69 |
Help /wp-admin/admin.php?page=rp-post-nav-help | 881 | 2.18 | 23.50 | 33.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure had uncaught errors
- > Warning in wp-content/plugins/rp-post-nav/rp-post-nav.php+41
Use of undefined constant RPPostNav - assumed 'RPPostNav' (this will throw an Error in a future version of PHP)
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- rp_post_nav_options
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rp-post-nav-help
- > Warning in wp-content/plugins/rp-post-nav/rp-post-nav.php+41
Use of undefined constant RPPostNav - assumed 'RPPostNav' (this will throw an Error in a future version of PHP)
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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/rp-post-nav/rp-post-nav.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rp-post-nav/admin/rp-post-nav-admin-options.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/rp-post-nav/admin/rp-post-nav-admin-help.php:5
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3, #4 in rp-post-nav/assets to your readme.txt
rp-post-nav/rp-post-nav.php Passed 13 tests
"RP Post Nav" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
100 characters long description:
RP Post Nav display the Next/Previous Post Title, Thumbnail, Excerpt and other custom functionality.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected807 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 48 | 17 | 460 |
CSS | 2 | 38 | 8 | 347 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.91 |
Average class complexity | 106.00 |
▷ Minimum class complexity | 106.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 10.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/css/images/rp-logo.png | 1.16KB | 1.26KB | 0.00% |