Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.17MB] [CPU: ▼44.60ms] Passed 4 tests
Server-side resources used by Weaver Show Sliders
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 38.79 ▲0.49 |
Dashboard /wp-admin | 2.79 ▼0.56 | 15.07 ▼37.31 |
Posts /wp-admin/edit.php | 2.79 ▼0.57 | 16.26 ▼32.63 |
Add New Post /wp-admin/post-new.php | 2.79 ▼3.10 | 15.46 ▼87.67 |
Media Library /wp-admin/upload.php | 2.79 ▼0.44 | 14.81 ▼20.77 |
Show Slider Plugin /wp-admin/themes.php?page=install-atw-slider-addon | 2.79 | 15.67 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 76 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Weaver Show Sliders
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲93 | 14.44 ▲0.05 | 1.81 ▼0.07 | 40.38 ▼3.72 |
Dashboard /wp-admin | 2,239 ▲51 | 5.79 ▼0.11 | 108.29 ▲2.82 | 39.25 ▼3.05 |
Posts /wp-admin/edit.php | 2,139 ▲50 | 2.05 ▲0.01 | 40.47 ▼0.64 | 35.96 ▼0.15 |
Add New Post /wp-admin/post-new.php | 1,561 ▲18 | 23.44 ▲4.92 | 636.35 ▲20.08 | 50.57 ▼2.06 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.23 ▲0.02 | 99.93 ▼1.03 | 43.19 ▼0.36 |
Show Slider Plugin /wp-admin/themes.php?page=install-atw-slider-addon | 974 | 2.09 | 26.89 | 31.57 |
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
- This plugin did not uninstall without warnings or errors
- > Notice in wp-includes/formatting.php+1104
Array to string conversion
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 22 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=install-atw-slider-addon
- > Notice in wp-includes/formatting.php+1104
Array to string conversion
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
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/show-sliders/includes/slider-widgets.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/show-sliders/atw-show-sliders.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/show-sliders/includes/class-tgm-plugin-activation.php:1917
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/show-sliders/includes/class-tgm-plugin-activation.php:1917
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: slider options, responsive slider, gallery, recent posts, slider shortcode...
show-sliders/atw-show-sliders.php 85% from 13 tests
The main PHP script in "Weaver Show Sliders" version 1.7 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 141 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("show-sliders.php" instead of "atw-show-sliders.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin7,106 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 1,100 | 1,683 | 3,601 |
JavaScript | 14 | 294 | 500 | 2,050 |
CSS | 4 | 107 | 64 | 548 |
HTML | 1 | 10 | 0 | 502 |
Markdown | 2 | 227 | 0 | 386 |
SVG | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 40.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 178.00 |
Average method complexity | 4.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 98 | |
▷ Static methods | 5 | 5.10% |
▷ Public methods | 78 | 79.59% |
▷ Protected methods | 20 | 20.41% |
▷ Private methods | 0 | 0.00% |
Functions | 74 | |
▷ Named functions | 74 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 100.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
38 PNG files occupy 0.14MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
flex/images/nav-5.png | 3.68KB | 0.23KB | ▼ 93.77% |
flex/images/alt-nav-2.png | 2.37KB | 1.33KB | ▼ 43.68% |
flex/images/nav-16.png | 1.18KB | 0.76KB | ▼ 35.76% |
flex/images/nav-6.png | 0.73KB | 0.62KB | ▼ 14.88% |
flex/images/nav-19.png | 1.06KB | 1.14KB | 0.00% |