Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.88ms] Passed 4 tests
Analyzing server-side resources used by Thumbnail RecentPost
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 40.24 ▼8.43 |
Dashboard /wp-admin | 3.33 ▲0.02 | 47.30 ▼3.75 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.02 ▼4.50 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 83.06 ▼22.83 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 41.49 ▲5.38 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_thumbnail_recent |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Thumbnail RecentPost
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.39 ▼0.92 | 1.69 ▼0.03 | 42.45 ▼3.90 |
Dashboard /wp-admin | 2,203 ▲18 | 4.88 ▼0.01 | 102.38 ▼7.39 | 38.64 ▼7.54 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.06 ▲0.01 | 34.61 ▼12.88 | 33.48 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,514 ▼20 | 23.53 ▲0.61 | 600.41 ▼32.34 | 70.75 ▲10.82 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.25 ▼0.01 | 99.27 ▼7.11 | 43.89 ▼3.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_thumbnail_recent
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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 fix the following items
- 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/thumbnail-recent-post/recentpost-thumbnail.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid url: ""
- Screenshots: Please add descriptions for these screenshots #0, #0 in thumbnail-recent-post/assets to your readme.txt
thumbnail-recent-post/recentpost-thumbnail.php 85% from 13 tests
This is the main PHP file of "Thumbnail RecentPost" version 1.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:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("thumbnail-recent-post.php" instead of "recentpost-thumbnail.php")
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 plugin83 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 35 | 15 | 74 |
CSS | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screen.png | 78.99KB | 24.74KB | ▼ 68.67% |
screenshot.png | 55.13KB | 14.62KB | ▼ 73.47% |
assets/banner-772x250.png | 64.75KB | 19.81KB | ▼ 69.40% |