Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/smart-posts-widget/smart-posts.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; SmartPosts has a deprecated constructor
Server metrics [RAM: ▼1.77MB] [CPU: ▼53.35ms] Passed 4 tests
Analyzing server-side resources used by Smart Posts Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.22 ▼1.25 | 5.11 ▼37.84 |
Dashboard /wp-admin | 2.24 ▼1.07 | 6.94 ▼43.11 |
Posts /wp-admin/edit.php | 2.24 ▼1.12 | 6.35 ▼42.84 |
Add New Post /wp-admin/post-new.php | 2.24 ▼3.65 | 7.52 ▼89.59 |
Media Library /wp-admin/upload.php | 2.24 ▼0.99 | 6.23 ▼30.12 |
Server storage [IO: ▲0.43MB] [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: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_smart-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Smart Posts Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲36 | 14.37 ▲0.02 | 1.99 ▼0.17 | 44.60 ▲1.54 |
Dashboard /wp-admin | 2,199 ▲22 | 5.60 ▲0.02 | 87.62 ▼6.75 | 40.42 ▼3.11 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.02 | 35.78 ▲0.44 | 35.38 ▲0.54 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.16 ▼0.31 | 688.25 ▼16.64 | 74.49 ▲18.18 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.15 ▼0.00 | 108.81 ▼3.40 | 45.98 ▼4.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/smart-posts-widget/smart-posts.php+34
Methods with the same name as their class will not be constructors in a future version of PHP; SmartPosts has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_smart-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: There are too many tags (23 tag instead of maximum 10)
- Screenshots: Please add images for these screenshots: #1 (Admin Widget configuration Section.), #2 (UI on your website widget any WordPress Theme.)
smart-posts-widget/smart-posts.php 92% from 13 tests
The entry point to "Smart Posts Widget" version 1.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("smart-posts-widget.php" instead of "smart-posts.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected396 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 59 | 33 | 329 |
CSS | 2 | 3 | 12 | 49 |
JavaScript | 1 | 1 | 7 | 18 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 8.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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.40MB with 0.26MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 38.27KB | 14.83KB | ▼ 61.26% |
screenshot-2.png | 373.75KB | 122.60KB | ▼ 67.20% |