Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.74ms] Passed 4 tests
This is a short check of server-side resources used by B-Rad Rotator
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.24 ▲2.20 |
Dashboard /wp-admin | 3.34 ▲0.00 | 43.74 ▼18.76 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.82 ▼2.30 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 91.72 ▼8.11 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.98 ▲3.26 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
b_rad_rotator_right_arrow |
b_rad_rotator_left_arrow |
widget_recent-comments |
db_upgraded |
b_rad_rotator_skin_colour |
widget_recent-posts |
widget_theysaidso_widget |
b_rad_rotator_items_visible |
Browser metrics Passed 4 tests
B-Rad Rotator: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.22 ▼1.04 | 1.69 ▼0.18 | 44.79 ▲4.82 |
Dashboard /wp-admin | 2,209 ▲20 | 4.85 ▼0.08 | 97.65 ▼9.20 | 38.06 ▼3.11 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 2.05 ▲0.05 | 41.02 ▲4.15 | 35.47 ▼0.03 |
Add New Post /wp-admin/post-new.php | 6,251 ▲4,737 | 26.02 ▲8.44 | 868.12 ▲186.19 | 59.86 ▲13.46 |
Media Library /wp-admin/upload.php | 1,382 ▼3 | 4.25 ▲0.06 | 95.80 ▼2.49 | 46.02 ▲1.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 10 options
- widget_recent-posts
- b_rad_rotator_skin_colour
- theysaidso_admin_options
- can_compress_scripts
- b_rad_rotator_items_visible
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- b_rad_rotator_left_arrow
- b_rad_rotator_right_arrow
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/b-rad-rotator/b-rad-rotator.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: thumbnail, rotator, thumbnail carousel, image carousel, image rotator...
b-rad-rotator/b-rad-rotator.php Passed 13 tests
This is the main PHP file of "B-Rad Rotator" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
69 characters long description:
This plugin will generate rotators with custom thumbnails and actions
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 plugin265 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 40 | 47 | 178 |
CSS | 1 | 3 | 0 | 87 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/red_left.png | 3.46KB | 1.47KB | ▼ 57.47% |
img/green_right.png | 3.25KB | 1.49KB | ▼ 54.03% |
img/green_left.png | 3.41KB | 1.48KB | ▼ 56.70% |
img/red_right.png | 3.31KB | 1.49KB | ▼ 54.95% |