Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.32MB] [CPU: ▲8.48ms] Passed 4 tests
Server-side resources used by WordPress Popular Posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.79 ▲1.33 | 45.19 ▲7.15 |
Dashboard /wp-admin | 4.73 ▲1.43 | 60.71 ▲9.94 |
Posts /wp-admin/edit.php | 4.71 ▲1.36 | 61.83 ▲16.91 |
Add New Post /wp-admin/post-new.php | 7.21 ▲1.32 | 99.79 ▲5.50 |
Media Library /wp-admin/upload.php | 4.52 ▲1.29 | 42.27 ▲11.34 |
WordPress Popular Posts /wp-admin/options-general.php?page=wordpress-popular-posts | 4.77 | 50.11 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 103 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_popularpostsdata |
wp_popularpostssummary |
wp_popularpoststransients |
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
wpp_ver |
wpp_settings_config |
db_upgraded |
widget_wpp |
wpp_performance_nag |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WordPress Popular Posts
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲100 | 14.19 ▼0.17 | 1.78 ▲0.02 | 40.53 ▼3.51 |
Dashboard /wp-admin | 2,257 ▲80 | 5.68 ▲0.08 | 89.08 ▼14.14 | 40.07 ▼5.77 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.98 ▼0.03 | 42.78 ▲7.39 | 38.31 ▲2.68 |
Add New Post /wp-admin/post-new.php | 6,372 ▲4,845 | 27.79 ▲4.36 | 860.88 ▲184.02 | 56.07 ▲2.36 |
Media Library /wp-admin/upload.php | 1,409 ▲6 | 4.24 ▲0.05 | 98.63 ▼0.63 | 40.62 ▼2.02 |
WordPress Popular Posts /wp-admin/options-general.php?page=wordpress-popular-posts | 1,336 | 5.18 | 145.64 | 117.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin cannot be uninstalled
- > Warning in wp-content/plugins/wordpress-popular-posts/uninstall.php+59
rmdir(wp-content/uploads/wordpress-popular-posts): Directory not empty
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_wpp
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wordpress-popular-posts/src/Admin/admin-page.php
- 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WordPressPopularPosts\\Rest\\Endpoint' not found in wp-content/plugins/wordpress-popular-posts/src/Rest/TaxonomiesEndpoint.php:4
- > PHP Notice
Undefined variable: current in wp-content/plugins/wordpress-popular-posts/src/Admin/screen-tools.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WordPressPopularPosts\\Block\\Block' not found in wp-content/plugins/wordpress-popular-posts/src/Block/Widget/Widget.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function WordPressPopularPosts\\register_activation_hook() in wp-content/plugins/wordpress-popular-posts/src/Bootstrap.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/wordpress-popular-posts/src/Rest/Endpoint.php:6
- > PHP Fatal error
Uncaught Error: Class 'WordPressPopularPosts\\Rest\\Endpoint' not found in wp-content/plugins/wordpress-popular-posts/src/Rest/ThumbnailsEndpoint.php:4
- > PHP Fatal error
Uncaught Error: Class 'WordPressPopularPosts\\Rest\\Endpoint' not found in wp-content/plugins/wordpress-popular-posts/src/Rest/PostsEndpoint.php:7
- > PHP Fatal error
Uncaught Error: Class 'WordPressPopularPosts\\Rest\\Endpoint' not found in wp-content/plugins/wordpress-popular-posts/src/Rest/WidgetEndpoint.php:7
- > PHP Fatal error
Uncaught Error: Class 'WordPressPopularPosts\\Rest\\Endpoint' not found in wp-content/plugins/wordpress-popular-posts/src/Rest/ThemesEndpoint.php:7
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wordpress-popular-posts/src/Widget/form.php:2
- > 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
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: widget, posts, top, popularity, popular
wordpress-popular-posts/wordpress-popular-posts.php 92% from 13 tests
The primary PHP file in "WordPress Popular Posts" version 6.3.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder was not found ("/languages")
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
There were no executable files found in this plugin10,017 lines of code in 93 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 1,456 | 2,579 | 6,440 |
JavaScript | 11 | 263 | 57 | 1,726 |
CSS | 15 | 230 | 65 | 1,341 |
JSON | 11 | 0 | 0 | 495 |
SVG | 1 | 3 | 0 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 28.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 183.00 |
Average method complexity | 5.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 1 | |
Traits | 1 | |
Classes | 35 | |
▷ Abstract classes | 3 | 8.57% |
▷ Concrete classes | 32 | 91.43% |
▷ Final classes | 0 | 0.00% |
Methods | 227 | |
▷ Static methods | 39 | 17.18% |
▷ Public methods | 186 | 81.94% |
▷ Protected methods | 2 | 0.88% |
▷ Private methods | 39 | 17.18% |
Functions | 36 | |
▷ Named functions | 5 | 13.89% |
▷ Anonymous functions | 31 | 86.11% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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 |
assets/images/flame.png | 7.10KB | 4.61KB | ▼ 35.08% |