Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/most-popular-posts-widget-lite/pp-popular-posts.php+40
Methods with the same name as their class will not be constructors in a future version of PHP; popular_posts_statistics has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼51.27ms] Passed 4 tests
Server-side resources used by Most Popular Posts Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.31 | 5.14 ▼38.24 |
Dashboard /wp-admin | 2.18 ▼1.13 | 8.49 ▼46.94 |
Posts /wp-admin/edit.php | 2.18 ▼1.18 | 6.61 ▼42.81 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 7.05 ▼77.09 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 4.87 ▼34.03 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_popular_posts_statistics |
New WordPress options |
---|
widget_recent-posts |
widget_popular_posts_statistics |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Most Popular Posts Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲56 | 13.18 ▼1.22 | 1.96 ▼0.04 | 42.66 ▼4.47 |
Dashboard /wp-admin | 2,206 ▲15 | 6.05 ▲0.17 | 106.33 ▼11.01 | 40.14 ▼7.28 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.13 ▲0.07 | 34.50 ▼3.53 | 33.95 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,528 ▲9 | 23.41 ▲0.18 | 688.85 ▼17.52 | 58.91 ▲7.51 |
Media Library /wp-admin/upload.php | 1,382 ▼9 | 4.30 ▲0.11 | 99.33 ▼7.85 | 43.76 ▼1.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/most-popular-posts-widget-lite/pp-popular-posts.php+40
Methods with the same name as their class will not be constructors in a future version of PHP; popular_posts_statistics has a deprecated constructor
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/most-popular-posts-widget-lite/pp-popular-posts.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: pupularity, visits, pupular, widget, bars...
most-popular-posts-widget-lite/pp-popular-posts.php 92% from 13 tests
Analyzing the main PHP file in "Most Popular Posts Widget" version 1.2.0
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("most-popular-posts-widget-lite.php" instead of "pp-popular-posts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected942 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 58 | 3 | 589 |
PHP | 3 | 46 | 24 | 353 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 51.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 13.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 46.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 | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
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
No PNG files were detected