Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/category-recent-posts-widget/tm_category_recent_posts.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; tm_Category_Recent_Posts_Widget has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼53.72ms] Passed 4 tests
This is a short check of server-side resources used by Categories Recent Posts Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.39 ▼38.73 |
Dashboard /wp-admin | 2.11 ▼1.19 | 7.00 ▼37.39 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.18 ▼45.05 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 4.97 ▼93.71 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.09 ▼27.37 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_tm-cat-recent-post-widget |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Categories Recent Posts Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.22 ▼1.34 | 1.70 ▼0.32 | 42.72 ▲0.48 |
Dashboard /wp-admin | 2,206 ▲18 | 5.88 ▲0.99 | 102.84 ▼2.45 | 39.87 ▼0.39 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.01 | 39.12 ▼1.82 | 33.08 ▼1.43 |
Add New Post /wp-admin/post-new.php | 1,533 ▼11 | 23.22 ▲4.71 | 648.67 ▲35.60 | 60.73 ▲10.41 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.23 ▲0.04 | 95.98 ▼7.55 | 43.29 ▼0.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/category-recent-posts-widget/tm_category_recent_posts.php+31
Methods with the same name as their class will not be constructors in a future version of PHP; tm_Category_Recent_Posts_Widget has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_tm-cat-recent-post-widget
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/category-recent-posts-widget/tm_category_recent_posts.php:19
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Widget appearing in a sidebar on a category archive page), #2 (Widget settings option in the Dashboard)
category-recent-posts-widget/tm_category_recent_posts.php 92% from 13 tests
"Categories Recent Posts Widget" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("category-recent-posts-widget.php" instead of "tm_category_recent_posts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin81 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 31 | 81 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ 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 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.28MB with 0.17MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 194.28KB | 79.64KB | ▼ 59.01% |
screenshot-2.png | 97.47KB | 41.34KB | ▼ 57.59% |