Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼8.09ms] Passed 4 tests
A check of server-side resources used by Tidyhive Featured Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 42.43 ▼8.19 |
Dashboard /wp-admin | 3.39 ▲0.08 | 46.22 ▼9.51 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.09 ▲3.29 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 86.75 ▼16.00 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.35 ▲1.36 |
Featured Posts /wp-admin/edit.php?tag=featured | 3.37 | 40.30 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_thfp_widget |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Tidyhive Featured Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.18 ▼1.21 | 1.64 ▼0.35 | 43.07 ▼0.55 |
Dashboard /wp-admin | 2,212 ▲24 | 4.88 ▼0.18 | 108.24 ▲4.15 | 39.90 ▲0.41 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.05 ▲0.03 | 41.82 ▲3.51 | 35.50 ▲0.99 |
Add New Post /wp-admin/post-new.php | 1,538 ▲3 | 23.16 ▲0.03 | 685.10 ▲72.76 | 63.71 ▲11.57 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.23 ▲0.03 | 95.52 ▼7.71 | 40.00 ▼2.69 |
Featured Posts /wp-admin/edit.php?tag=featured | 1,275 | 1.97 | 36.73 | 32.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_theysaidso_widget
- widget_thfp_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/tidyhive-featured-posts/admin/partials/thfp-admin-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_post_thumbnail_url() in wp-content/plugins/tidyhive-featured-posts/public/partials/thfp-public-display.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tidyhive-featured-posts/includes/class-thfp-widget.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== tidyhive-featured-posts ===
)
tidyhive-featured-posts/thfp.php 85% from 13 tests
This is the main PHP file of "Tidyhive Featured Posts" version 1.5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("tidyhive-featured-posts.php" instead of "thfp.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Good job! No executable or dangerous file extensions detected459 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 145 | 586 | 297 |
CSS | 3 | 26 | 15 | 137 |
JavaScript | 3 | 9 | 54 | 25 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 4 | 12.12% |
▷ Public methods | 28 | 84.85% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.15% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/arrow-icons.png | 0.29KB | 0.45KB | 0.00% |