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 did not install without errors
- > Deprecated in wp-content/plugins/recent-commented-posts/recent-commented-posts.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; yg_recent_commented_posts has a deprecated constructor
Server metrics [RAM: ▼1.84MB] [CPU: ▼50.16ms] Passed 4 tests
Server-side resources used by Recent Commented Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 8.61 ▼31.90 |
Dashboard /wp-admin | 2.16 ▼1.14 | 7.25 ▼36.14 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 5.90 ▼41.63 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.72 | 6.98 ▼90.95 |
Media Library /wp-admin/upload.php | 2.16 ▼1.06 | 5.50 ▼29.23 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_recentcommentedposts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Recent Commented Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.18 ▼1.12 | 1.71 ▼0.08 | 43.74 ▼10.06 |
Dashboard /wp-admin | 2,206 ▲21 | 5.99 ▲0.18 | 105.04 ▲1.79 | 37.80 ▼5.11 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.00 ▲0.01 | 40.31 ▲0.45 | 34.62 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,514 ▼19 | 17.68 ▼5.67 | 673.40 ▲6.08 | 59.01 ▲13.87 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.01 | 98.21 ▼7.45 | 44.18 ▼3.80 |
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
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/recent-commented-posts/recent-commented-posts.php+13
Methods with the same name as their class will not be constructors in a future version of PHP; yg_recent_commented_posts has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recentcommentedposts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/recent-commented-posts/recent-commented-posts.php:13
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Widget's screenshot in 'Appearance'->'Widgets')
recent-commented-posts/recent-commented-posts.php Passed 13 tests
This is the main PHP file of "Recent Commented Posts" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
72 characters long description:
Displays most recently commented posts with thumbnail images (optional).
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
Everything looks great! No dangerous files found in this plugin222 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 22 | 19 | 177 |
PO File | 1 | 17 | 25 | 45 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 1 | |
▷ Named functions | 1 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 12.81KB | 6.44KB | ▼ 49.74% |