Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼8.63ms] Passed 4 tests
This is a short check of server-side resources used by Infinite Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 29.58 ▼13.34 |
Dashboard /wp-admin | 3.86 ▲0.55 | 50.50 ▼1.62 |
Posts /wp-admin/edit.php | 3.91 ▲0.55 | 52.42 ▼0.75 |
Add New Post /wp-admin/post-new.php | 6.38 ▲0.49 | 89.37 ▼18.79 |
Media Library /wp-admin/upload.php | 3.72 ▲0.49 | 43.17 ▲7.23 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.78 | 35.82 |
Server storage [IO: ▲1.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 137 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Infinite Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲175 | 13.55 ▼0.85 | 11.20 ▲9.21 | 42.23 ▼1.17 |
Dashboard /wp-admin | 2,239 ▲62 | 5.53 ▼0.02 | 83.29 ▼8.52 | 44.10 ▲0.78 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 2.06 ▼0.05 | 38.57 ▼0.01 | 42.84 ▲5.85 |
Add New Post /wp-admin/post-new.php | 1,582 ▲51 | 23.40 ▲0.34 | 645.40 ▼35.41 | 57.48 ▲4.42 |
Media Library /wp-admin/upload.php | 1,452 ▲49 | 4.22 ▲0.03 | 100.32 ▼3.05 | 48.70 ▲2.69 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 946 | 2.09 | 25.24 | 26.80 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/infinite-slider/public/includes/cmb/tests/phpunit/includes/bootstrap.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/infinite-slider/public/includes/cmb/init.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/infinite-slider/public/includes/cmb/example-functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/infinite-slider/admin/includes/class-tgm-plugin-activation.php:161
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/infinite-slider/public/includes/cmb/tests/phpunit/tests/CMB_Core_Test.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
infinite-slider/infinite-slider.php 92% from 13 tests
The main PHP script in "Infinite Slider" version 2.0.1 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected9,269 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 1,033 | 2,224 | 3,794 |
JavaScript | 7 | 510 | 462 | 3,510 |
CSS | 4 | 98 | 21 | 1,552 |
Markdown | 3 | 89 | 0 | 288 |
Bourne Shell | 1 | 15 | 4 | 59 |
JSON | 1 | 0 | 0 | 31 |
YAML | 1 | 5 | 0 | 18 |
XML | 1 | 0 | 1 | 17 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 51.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 136.00 |
Average method complexity | 4.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 211 | |
▷ Static methods | 44 | 20.85% |
▷ Public methods | 198 | 93.84% |
▷ Protected methods | 8 | 3.79% |
▷ Private methods | 5 | 2.37% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 2 | 50.00% |
▷ Class constants | 2 | 50.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
88 PNG files occupy 0.35MB with 0.27MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/img/fullscreen.png | 3.60KB | 0.79KB | ▼ 78.08% |
public/includes/cmb/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
public/assets/img/blackdots120x120.png | 3.22KB | 0.34KB | ▼ 89.29% |
public/assets/img/blackdots240x240.png | 3.66KB | 0.51KB | ▼ 86.14% |
public/assets/img/360x360.png | 4.42KB | 0.48KB | ▼ 89.10% |