Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.59ms] Passed 4 tests
A check of server-side resources used by Nelio Related Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 42.25 ▲2.76 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.08 ▲3.57 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 44.52 ▼9.88 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 88.23 ▼14.79 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 41.99 ▲8.37 |
Related Posts /wp-admin/themes.php?page=neliosrp-settings | 3.27 | 33.67 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_neliosrp_widget |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Nelio Related Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 14.77 ▲0.38 | 1.79 ▲0.07 | 45.26 ▲3.61 |
Dashboard /wp-admin | 2,234 ▲46 | 5.88 ▲0.98 | 97.60 ▼6.44 | 46.61 ▲1.37 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.06 ▲0.08 | 35.89 ▼10.16 | 36.92 ▲2.04 |
Add New Post /wp-admin/post-new.php | 6,259 ▲4,717 | 25.95 ▲7.46 | 911.87 ▲302.72 | 61.47 ▲4.02 |
Media Library /wp-admin/upload.php | 1,413 ▲25 | 4.26 ▲0.04 | 105.80 ▲2.79 | 50.55 ▲5.67 |
Related Posts /wp-admin/themes.php?page=neliosrp-settings | 877 | 2.16 | 28.80 | 37.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_neliosrp_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/themes.php?page=neliosrp-settings
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/themes.php?page=neliosrp-settings
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 9× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nelio-related-posts/includes/widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/nelio-related-posts/includes/admin/settings-page.php:172
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/nelio-related-posts/template-examples/title-only.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/nelio-related-posts/includes/nelio-srp-main.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/nelio-related-posts/main.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nelio-related-posts/includes/admin/edit-post.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nelio-related-posts/includes/admin/nelioab-campaign.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/nelio-related-posts/template-examples/title-and-featured-image.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/nelio-related-posts/includes/related-post-template.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: swiftype, search, cached, related post
nelio-related-posts/main.php 85% from 13 tests
Analyzing the main PHP file in "Nelio Related Posts" version 2.1.1
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("nelio-related-posts.php" instead of "main.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin764 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 135 | 108 | 619 |
PO File | 3 | 45 | 54 | 144 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 10.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 6 | 20.00% |
▷ Public methods | 29 | 96.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.33% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 7 | 53.85% |
▷ Class constants | 6 | 46.15% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin