Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/tentblogger-simple-top-posts/tentblogger-simple-top-posts.php+29
Methods with the same name as their class will not be constructors in a future version of PHP; TentBlogger_Top_Posts has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼196.31ms] Passed 4 tests
A check of server-side resources used by TentBlogger Simple Top Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼0.93 | 4.82 ▼18.87 |
Dashboard /wp-admin | 1.81 ▼1.24 | 5.80 ▼41.68 |
Posts /wp-admin/edit.php | 1.81 ▼1.30 | 5.20 ▼40.82 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.62 | 5.30 ▼672.88 |
Media Library /wp-admin/upload.php | 1.81 ▼1.19 | 4.77 ▼29.85 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_tentblogger-top-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TentBlogger Simple Top Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.87 ▼0.14 | 9.49 ▼0.43 | 47.67 ▼1.65 |
Dashboard /wp-admin | 2,975 ▲38 | 6.10 ▲0.11 | 150.92 ▲12.31 | 111.11 ▼0.13 |
Posts /wp-admin/edit.php | 2,741 ▲2 | 2.72 ▲0.01 | 65.74 ▼1.31 | 87.20 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,674 ▲70 | 18.88 ▲0.01 | 396.32 ▲0.77 | 106.89 ▼1.72 |
Media Library /wp-admin/upload.php | 1,809 ▲2 | 5.02 ▼0.01 | 161.09 ▼5.40 | 123.45 ▲3.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/tentblogger-simple-top-posts/tentblogger-simple-top-posts.php+29
Methods with the same name as their class will not be constructors in a future version of PHP; TentBlogger_Top_Posts has a deprecated constructor
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_tentblogger-top-posts
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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/tentblogger-simple-top-posts/views/widget.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/tentblogger-simple-top-posts/views/widget.php on line 12
- > PHP Notice
Undefined variable: posts in wp-content/plugins/tentblogger-simple-top-posts/views/widget.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/tentblogger-simple-top-posts/tentblogger-simple-top-posts.php:29
- > PHP Notice
Undefined variable: widget_title in wp-content/plugins/tentblogger-simple-top-posts/views/widget.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/tentblogger-simple-top-posts/views/admin.php:5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #1 (TentBlogger's Top Posts)
tentblogger-simple-top-posts/tentblogger-simple-top-posts.php Passed 13 tests
The main file in "TentBlogger Simple Top Posts" v. 2.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
98 characters long description:
Show the top commented posts per Week, Month, or All Time! No setup needed. Widget-ready. Awesome.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected211 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 53 | 78 | 160 |
PO File | 1 | 10 | 9 | 35 |
CSS | 2 | 0 | 0 | 14 |
JavaScript | 1 | 1 | 0 | 2 |
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.23 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 50.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 50.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
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 |
screenshot-1.png | 5.88KB | 4.11KB | ▼ 30.12% |