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
Please fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/cool-popular-post/cool-popular-posts.php+148
Methods with the same name as their class will not be constructors in a future version of PHP; cool_popular_posts_widget has a deprecated constructor
Server metrics [RAM: ▼1.82MB] [CPU: ▼52.69ms] Passed 4 tests
Analyzing server-side resources used by cool Popular Post
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.17 ▼1.29 | 5.20 ▼36.52 |
Dashboard /wp-admin | 2.19 ▼1.12 | 5.53 ▼42.64 |
Posts /wp-admin/edit.php | 2.19 ▼1.17 | 8.66 ▼43.64 |
Add New Post /wp-admin/post-new.php | 2.19 ▼3.70 | 5.99 ▼87.97 |
Media Library /wp-admin/upload.php | 2.19 ▼1.04 | 5.13 ▼32.09 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_cool_popular_posts_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for cool Popular Post
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.29 ▼1.27 | 1.97 ▲0.14 | 49.09 ▲4.84 |
Dashboard /wp-admin | 2,206 ▲15 | 4.86 ▼0.06 | 108.69 ▲6.38 | 41.07 ▼6.01 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.08 | 35.25 ▼1.43 | 32.54 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.39 ▼4.67 | 632.34 ▼13.42 | 59.12 ▲8.02 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▼0.13 | 94.04 ▼16.57 | 41.57 ▼6.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/cool-popular-post/cool-popular-posts.php+148
Methods with the same name as their class will not be constructors in a future version of PHP; cool_popular_posts_widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_cool_popular_posts_widget
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cool-popular-post/cool-popular-posts.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
- Screenshots: Screenshot #1 (Screenshot of Widget) image missing
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
cool-popular-post/cool-popular-posts.php 92% from 13 tests
The main PHP file in "cool Popular Post" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cool-popular-post.php" instead of "cool-popular-posts.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
No dangerous file extensions were detected331 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 69 | 33 | 213 |
PO File | 4 | 43 | 81 | 118 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 4 | |
▷ Named functions | 4 | 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 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin