Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/popularity-posts-widget/class_popularity-posts-widget.php+333
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.80MB] [CPU: ▼55.82ms] Passed 4 tests
Analyzing server-side resources used by Popularity Posts Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.19 ▼1.27 | 5.58 ▼38.81 |
Dashboard /wp-admin | 2.21 ▼1.09 | 6.55 ▼44.22 |
Posts /wp-admin/edit.php | 2.21 ▼1.14 | 6.56 ▼41.52 |
Add New Post /wp-admin/post-new.php | 2.21 ▼3.68 | 7.83 ▼98.73 |
Media Library /wp-admin/upload.php | 2.21 ▼1.02 | 5.77 ▼30.70 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 15 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_PopularityPostsWidget |
wp_PopularityPostsWidgetCache |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_popularitypostswidget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Popularity Posts Widget: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.33 ▼0.20 | 1.73 ▲0.05 | 46.32 ▲9.10 |
Dashboard /wp-admin | 2,198 ▲21 | 5.53 ▼0.16 | 92.44 ▲2.81 | 41.94 ▲4.00 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▲0.01 | 36.55 ▲0.84 | 35.75 ▲0.87 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.60 ▲0.52 | 643.63 ▼49.07 | 45.38 ▼19.95 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.17 ▼0.03 | 99.54 ▼19.62 | 44.27 ▼5.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/popularity-posts-widget/class_popularity-posts-widget.php+333
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_popularitypostswidget
- theysaidso_admin_options
- 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/popularity-posts-widget/kama_thumbnail.php:333
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/popularity-posts-widget/class_popularity-posts-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/popularity-posts-widget/style/style-one.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/popularity-posts-widget/class_popularity-posts-widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: You are using too many tags: 28 tag instead of maximum 10
popularity-posts-widget/popularity-posts-widget.php Passed 13 tests
"Popularity Posts Widget" version 1.13's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
67 characters long description:
Allows you to show your most viewed posts as a widget on your blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin704 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 193 | 135 | 635 |
PO File | 1 | 17 | 17 | 51 |
CSS | 1 | 12 | 8 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 7.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 14.29% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
nothumb.png | 5.75KB | 4.78KB | ▼ 16.92% |