Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼8.90ms] Passed 4 tests
Analyzing server-side resources used by Nelio Featured Posts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.66 ▼0.53 |
Dashboard /wp-admin | 3.40 ▲0.05 | 53.29 ▼13.36 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 51.97 ▼1.96 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 87.15 ▼19.75 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 40.12 ▲1.40 |
Featured by Nelio /wp-admin/edit.php?page=neliofp-settings | 3.27 | 31.00 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_neliofp_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Nelio Featured Posts: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,846 ▲85 | 14.35 ▼0.03 | 1.91 ▲0.33 | 45.25 ▲0.44 |
Dashboard /wp-admin | 2,220 ▲40 | 5.63 ▼0.03 | 86.08 ▼10.75 | 46.66 ▲2.20 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.98 ▼0.01 | 36.50 ▼4.41 | 45.01 ▲6.10 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.28 ▲0.03 | 705.93 ▲9.32 | 69.93 ▲16.44 |
Media Library /wp-admin/upload.php | 1,428 ▲25 | 4.11 ▼0.07 | 105.26 ▲2.08 | 47.26 ▲0.66 |
Featured by Nelio /wp-admin/edit.php?page=neliofp-settings | 939 | 2.44 | 43.99 | 33.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_neliofp_widget
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?page=neliofp-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/edit.php?page=neliofp-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
Almost there! Just fix the following items
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/nelio-featured-posts/nelio-featured-posts.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nelio-featured-posts/includes/admin/nelioab-campaign.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/nelio-featured-posts/template-examples/title-and-featured-image.php:12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nelio-featured-posts/includes/widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/nelio-featured-posts/includes/featured-post-template.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_permalink() in wp-content/plugins/nelio-featured-posts/template-examples/title-only.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/nelio-featured-posts/includes/admin/settings-page.php:236
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: relevant post, starred post, manual relevant post, manual featured posts, featured post...
nelio-featured-posts/nelio-featured-posts.php Passed 13 tests
The main PHP script in "Nelio Featured Posts" version 2.2.4 is automatically included on every request by WordPress
101 characters long description:
Select the featured posts you want to show at any time and include them in your theme using a widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin3,630 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 558 | 382 | 2,610 |
PHP | 10 | 122 | 109 | 577 |
CSS | 8 | 51 | 3 | 255 |
JSON | 5 | 0 | 0 | 116 |
Markdown | 1 | 27 | 0 | 72 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 5 | 31.25% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/lib/select2-3.5.0/select2x2.png | 0.83KB | 0.77KB | ▼ 6.15% |
assets/images/feat-image-placeholder-hover.png | 0.65KB | 0.34KB | ▼ 48.58% |
assets/images/feat-image-placeholder.png | 0.50KB | 0.23KB | ▼ 54.01% |
assets/noimage.png | 4.11KB | 2.17KB | ▼ 47.14% |
assets/admin/lib/select2-3.5.0/select2.png | 0.60KB | 0.99KB | 0.00% |