Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼7.32ms] Passed 4 tests
A check of server-side resources used by Awesome Featured Post Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.16 | 45.00 ▼5.22 |
Dashboard /wp-admin | 3.50 ▲0.12 | 48.36 ▼17.37 |
Posts /wp-admin/edit.php | 3.62 ▲0.22 | 49.19 ▼5.47 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.18 | 96.23 ▼1.22 |
Media Library /wp-admin/upload.php | 3.43 ▲0.16 | 39.40 ▲1.94 |
Server storage [IO: ▲0.62MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_mfpw-widget |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Awesome Featured Post Widget: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲141 | 13.63 ▼0.72 | 11.07 ▲8.58 | 42.02 ▲0.53 |
Dashboard /wp-admin | 2,197 ▲20 | 5.60 ▲0.00 | 85.53 ▼13.03 | 39.04 ▼3.44 |
Posts /wp-admin/edit.php | 2,102 ▲2 | 2.01 ▼0.15 | 33.91 ▼2.80 | 33.61 ▼5.58 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.58 ▲0.27 | 667.99 ▼28.09 | 65.78 ▲7.37 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.20 ▲0.11 | 110.17 ▼7.93 | 48.66 ▲0.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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_mfpw-widget
- widget_theysaidso_widget
- widget_recent-comments
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/awesome-featured-post-widget/includes/widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/awesome-featured-post-widget/includes/functions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/awesome-featured-post-widget/includes/shortcode.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 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
8 plugin tags: category, widget, slider, tags, thumbnails...
awesome-featured-post-widget/awesome-featured-post-widget.php Passed 13 tests
The entry point to "Awesome Featured Post Widget" version 1.2 is a PHP file that has certain tags in its header comment area
71 characters long description:
Easily to display Awesome Featured Post Widget via shortcode or widget.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin2,944 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 410 | 230 | 1,457 |
JavaScript | 2 | 227 | 30 | 1,359 |
CSS | 2 | 27 | 2 | 128 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 5.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 1 | 5.26% |
▷ Public methods | 17 | 89.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 10.53% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
6 PNG files occupy 0.47MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugin screen shots/ScreenShot5.png | 116.09KB | 37.13KB | ▼ 68.02% |
plugin screen shots/ScreenShot4.PNG | 30.34KB | 9.62KB | ▼ 68.28% |
plugin screen shots/ScreenShot3.png | 115.55KB | 32.17KB | ▼ 72.16% |
plugin screen shots/ScreenShot2.PNG | 134.61KB | 40.21KB | ▼ 70.13% |
plugin screen shots/ScreenShot1.png | 84.68KB | 31.54KB | ▼ 62.75% |