Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/smilebox-widget/front-end/class/SmileBoxWidget.php+418
Declaration of Walker_SmileBox::paged_walk($elements, $max_depth = '', $page_num = '', $per_page = '') should be compatible with Walker::paged_walk($elements, $max_depth, $page_num, $per_page, ...$args)
Server metrics [RAM: ▼1.96MB] [CPU: ▼49.27ms] Passed 4 tests
Analyzing server-side resources used by SmileBox Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.51 ▼31.78 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.14 ▼45.15 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.89 ▼40.41 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 8.28 ▼79.73 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 7.55 ▼25.09 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_smile_box_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for SmileBox Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.37 ▲0.17 | 2.04 ▲0.26 | 39.98 ▼1.62 |
Dashboard /wp-admin | 2,219 ▲42 | 5.69 ▲0.12 | 83.94 ▼6.98 | 38.30 ▼2.70 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.27 ▲0.31 | 36.61 ▲0.26 | 34.84 ▼2.05 |
Add New Post /wp-admin/post-new.php | 1,542 ▲7 | 23.17 ▲4.97 | 650.75 ▼21.11 | 35.71 ▼35.43 |
Media Library /wp-admin/upload.php | 1,421 ▲18 | 4.44 ▲0.25 | 105.28 ▼3.42 | 45.40 ▲2.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/smilebox-widget/front-end/class/SmileBoxWidget.php+418
Declaration of Walker_SmileBox::paged_walk($elements, $max_depth = '', $page_num = '', $per_page = '') should be compatible with Walker::paged_walk($elements, $max_depth, $page_num, $per_page, ...$args)
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_smile_box_widget
- widget_recent-comments
- 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/smilebox-widget/front-end/class/SmileBoxWidget.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 83% 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 require attention:
- Screenshots: Please add images for these screenshots: #1 (/assets/screenshots/image_1.png), #2 (/assets/screenshots/image_2.png), #3 (/assets/screenshots/image_3.png), #4 (/assets/screenshots/image_4.png)
- Plugin Name: Please specify the plugin name on the first line (
=== smilebox-widget ===
)
smilebox-widget/nx-smile-box-widget.php 77% from 13 tests
The main PHP script in "SmileBox Widget" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("smilebox-widget.php" instead of "nx-smile-box-widget.php")
- Description: The description should be shorter than 140 characters (currently 311 characters long)
- Domain Path: The domain path folder does not exist ("/lang")
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
There were no executable files found in this plugin499 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 89 | 59 | 446 |
CSS | 1 | 3 | 6 | 43 |
JavaScript | 1 | 2 | 6 | 10 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 12.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 3.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 18 | |
▷ Static methods | 3 | 16.67% |
▷ Public methods | 15 | 83.33% |
▷ Protected methods | 3 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.61MB with 0.40MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshots/image_3.png | 127.19KB | 48.63KB | ▼ 61.76% |
assets/screenshots/image_4.png | 193.77KB | 73.63KB | ▼ 62.00% |
assets/screenshots/image_2.png | 184.73KB | 47.48KB | ▼ 74.30% |
assets/screenshots/image_1.png | 114.11KB | 41.24KB | ▼ 63.86% |