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
It is recommended to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/popular-widget/popular-widget.php+136
Function create_function() is deprecated
Server metrics [RAM: ▼1.97MB] [CPU: ▼59.74ms] Passed 4 tests
A check of server-side resources used by Popular Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.13 ▼38.54 |
Dashboard /wp-admin | 2.05 ▼1.30 | 5.65 ▼57.07 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.00 ▼45.77 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 4.92 ▼97.57 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.36 ▼33.34 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_popular-widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Popular Widget: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,897 ▲136 | 13.83 ▼0.52 | 9.35 ▲7.73 | 38.88 ▼4.91 |
Dashboard /wp-admin | 2,192 ▲15 | 5.57 ▼0.09 | 91.72 ▲4.43 | 40.26 ▼1.79 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.03 | 36.06 ▼5.11 | 34.19 ▼11.73 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.41 ▼0.02 | 661.74 ▼40.64 | 60.67 ▲11.70 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.14 ▼0.08 | 109.48 ▼4.66 | 48.80 ▲1.66 |
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 did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/popular-widget/popular-widget.php+136
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_popular-widget
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/popular-widget/_inc/functions.php:14
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/popular-widget/_inc/widget.php:17
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/popular-widget/_inc/form.php:15
- > 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 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Screenshot Options), #2 (Sort / disable / rename), #3 (Screenshot Widget 1), #4 (Screenshot Widget 2)
- Tags: There are too many tags (19 tag instead of maximum 10)
popular-widget/popular-widget.php Passed 13 tests
The main file in "Popular Widget" v. 1.7.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
70 characters long description:
Display most viewed, most commented and tags in one widget (with tabs)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected545 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 167 | 209 | 520 |
JavaScript | 2 | 8 | 20 | 23 |
CSS | 2 | 2 | 20 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 38.50 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
4 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 21.73KB | 6.20KB | ▼ 71.48% |
screenshot-1.png | 29.28KB | 7.21KB | ▼ 75.37% |
screenshot-3.png | 24.39KB | 10.68KB | ▼ 56.21% |
screenshot-2.png | 29.79KB | 7.91KB | ▼ 73.45% |