Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/widget-rotator/widget_rotator_pro.php+2
Function create_function() is deprecated
Server metrics [RAM: ▼1.85MB] [CPU: ▼53.45ms] Passed 4 tests
This is a short check of server-side resources used by Widget Rotator Pro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 5.67 ▼40.24 |
Dashboard /wp-admin | 2.16 ▼1.15 | 11.46 ▼38.29 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.90 ▼43.57 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 6.34 ▼91.70 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 7.60 ▼26.79 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_widget-rotator-pro |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Widget Rotator Pro: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,843 ▲108 | 13.21 ▼1.43 | 2.00 ▲0.05 | 41.75 ▲0.52 |
Dashboard /wp-admin | 2,224 ▲39 | 5.88 ▲0.98 | 104.39 ▲1.33 | 39.32 ▼2.49 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.05 ▲0.03 | 39.20 ▼0.52 | 35.29 ▲1.20 |
Add New Post /wp-admin/post-new.php | 1,543 ▲10 | 23.40 ▲0.08 | 645.54 ▼9.31 | 56.25 ▲2.77 |
Media Library /wp-admin/upload.php | 1,403 ▲24 | 4.23 ▲0.07 | 97.11 ▼2.43 | 40.94 ▼0.20 |
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
The following items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/widget-rotator/widget_rotator_pro.php+2
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_widget-rotator-pro
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 3× 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/widget-rotator/widget_rotator_pro.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/widget-rotator/widget_rotator_pro.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/widget-rotator/widget_rotator_pro_settings_page.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Plugin Name: Please specify the plugin name on the first line (
=== widget-rotator ===
) - Screenshots: These screenshots require images: #1 (This screen shot description corresponds to 1.png. Note that the screenshot is taken from), #2 (This is the second screen shot)
widget-rotator/index.php 92% from 13 tests
The primary PHP file in "Widget Rotator Pro" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("widget-rotator.php" instead of "index.php")
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
Success! There were no dangerous files found in this plugin771 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 28 | 38 | 428 |
PHP | 3 | 137 | 18 | 292 |
JavaScript | 1 | 13 | 3 | 51 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 31.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 compressed PNG files occupy 0.14MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/images/ui-bg_inset-hard_100_f5f8f9_1x100.png | 0.10KB | 0.13KB | 0.00% |
assets/css/images/ui-bg_glass_75_d0e5f5_1x400.png | 0.12KB | 0.16KB | 0.00% |
assets/css/images/ui-bg_flat_55_fbec88_40x100.png | 0.18KB | 0.08KB | ▼ 52.20% |
assets/css/images/ui-icons_f9bd01_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
assets/css/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |