Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/client-scroller-widget/client-scroller-widget.php+444
Function create_function() is deprecated
Server metrics [RAM: ▼1.75MB] [CPU: ▼56.45ms] Passed 4 tests
Analyzing server-side resources used by Client Scroller Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.24 ▼1.23 | 5.27 ▼33.61 |
Dashboard /wp-admin | 2.26 ▼1.05 | 7.17 ▼43.62 |
Posts /wp-admin/edit.php | 2.26 ▼1.10 | 7.96 ▼42.32 |
Add New Post /wp-admin/post-new.php | 2.26 ▼3.63 | 7.72 ▼106.26 |
Media Library /wp-admin/upload.php | 2.26 ▼0.97 | 6.39 ▼30.62 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_client-scroller-widget |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Client Scroller Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,901 ▲140 | 13.38 ▼0.88 | 7.55 ▲5.88 | 42.77 ▼5.91 |
Dashboard /wp-admin | 2,198 ▲18 | 5.60 ▼0.08 | 86.60 ▼13.30 | 38.63 ▼10.16 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.00 ▼0.03 | 38.92 ▲2.10 | 36.14 ▲0.45 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.03 ▲5.00 | 647.21 ▼42.64 | 53.52 ▼12.04 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▼0.11 | 97.64 ▼2.16 | 43.96 ▼0.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/client-scroller-widget/client-scroller-widget.php+444
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- theysaidso_admin_options
- widget_client-scroller-widget
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/client-scroller-widget/client-scroller-widget.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: clientslider, clientscroller, clientslideshow, clientele, clientwidget
client-scroller-widget/client-scroller-widget.php Passed 13 tests
The main PHP file in "Client Scroller Widget" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
72 characters long description:
A Simple and powerful Widget to create add a clientele in your wordpress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,428 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 90 | 94 | 583 |
CSS | 6 | 39 | 91 | 512 |
PHP | 1 | 71 | 40 | 333 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 41.00 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 11.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
nivo-slider/themes/bar/bullets.png | 1.25KB | 1.08KB | ▼ 13.74% |
nivo-slider/themes/dark/bullets.png | 3.07KB | 0.42KB | ▼ 86.27% |
nivo-slider/themes/light/arrows.png | 3.17KB | 0.52KB | ▼ 83.49% |
nivo-slider/themes/default/bullets.png | 1.25KB | 1.08KB | ▼ 13.74% |
nivo-slider/themes/light/bullets.png | 3.21KB | 0.54KB | ▼ 83.24% |