Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼253.93ms] Passed 4 tests
An overview of server-side resources used by Popular Post Widget with Thumbnail
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 32.10 ▲9.61 |
Dashboard /wp-admin | 3.09 ▲0.04 | 43.78 ▼2.68 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 44.97 ▲0.24 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 90.71 ▼1,008.17 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 34.16 ▼5.12 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_popularpost |
Browser metrics Passed 4 tests
A check of browser resources used by Popular Post Widget with Thumbnail
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,676 ▲70 | 15.87 ▲0.39 | 8.10 ▼0.56 | 51.84 ▲4.87 |
Dashboard /wp-admin | 2,933 ▲80 | 6.09 ▲0.27 | 157.53 ▲25.74 | 104.63 ▲5.88 |
Posts /wp-admin/edit.php | 2,703 ▼3 | 2.69 ▲0.00 | 61.59 ▼6.35 | 92.81 ▼3.37 |
Add New Post /wp-admin/post-new.php | 1,853 ▼0 | 18.93 ▼0.18 | 365.94 ▼28.54 | 110.83 ▼3.10 |
Media Library /wp-admin/upload.php | 1,772 ▲56 | 5.01 ▲0.03 | 143.21 ▼20.57 | 114.56 ▼1.35 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_popularpost
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 3× 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/popular-post-widget-with-thumbnail/bootstrap.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/popular-post-widget-with-thumbnail/popular-post-widget.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/popular-post-widget-with-thumbnail/popular-post.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: popular post widget, popular post, popular posts, most popular posts, widget
popular-post-widget-with-thumbnail/popular-post-widget.php 85% from 13 tests
The main PHP file in "Popular Post Widget with Thumbnail" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- 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
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("popular-post-widget-with-thumbnail.php" instead of "popular-post-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin174 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 45 | 67 | 123 |
PO File | 1 | 5 | 5 | 27 |
CSS | 1 | 3 | 0 | 24 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 5 | |
▷ Named functions | 5 | 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 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/Screenshot-1.png | 106.20KB | 36.62KB | ▼ 65.52% |