Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.17MB] [CPU: ▼42.42ms] Passed 4 tests
A check of server-side resources used by Typhoon Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.79 ▼0.67 | 13.51 ▼32.09 |
Dashboard /wp-admin | 2.84 ▼0.46 | 18.24 ▼30.31 |
Posts /wp-admin/edit.php | 2.84 ▼0.51 | 16.25 ▼35.64 |
Add New Post /wp-admin/post-new.php | 2.84 ▼3.05 | 21.19 ▼71.62 |
Media Library /wp-admin/upload.php | 2.84 ▼0.39 | 15.18 ▼20.84 |
All Slider /wp-admin/edit.php?post_type=typhoon_slider | 2.84 | 17.04 |
Add New /wp-admin/post-new.php?post_type=typhoon_slider | 2.84 | 16.83 |
Server storage [IO: ▲0.54MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 65 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Typhoon Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,063 ▲328 | 15.29 ▲1.00 | 5.87 ▲3.96 | 39.37 ▼5.67 |
Dashboard /wp-admin | 2,373 ▲182 | 6.59 ▲1.69 | 124.75 ▲18.04 | 43.90 ▼0.19 |
Posts /wp-admin/edit.php | 2,282 ▲193 | 3.40 ▲1.39 | 45.84 ▲3.29 | 29.09 ▼6.20 |
Add New Post /wp-admin/post-new.php | 1,578 ▲36 | 18.74 ▲0.30 | 595.52 ▼53.37 | 33.61 ▼22.27 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.18 ▲0.00 | 79.89 ▼17.32 | 46.22 ▲1.13 |
All Slider /wp-admin/edit.php?post_type=typhoon_slider | 1,254 | 3.28 | 48.91 | 29.03 |
Add New /wp-admin/post-new.php?post_type=typhoon_slider | 2,227 | 4.16 | 79.15 | 83.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Warning in wp-content/plugins/typhoon-slider/CMF/init.php+746
count(): Parameter must be an array or an object that implements Countable
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=typhoon_slider
- > Warning in wp-content/plugins/typhoon-slider/CMF/init.php+746
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/post-new.php?post_type=typhoon_slider
- > Notice in wp-content/plugins/typhoon-slider/init.php+236
Undefined index: ts_content
SRP 50% 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
Please fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/typhoon-slider/CMF/CMF/init.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/typhoon-slider/CMF/metabox-functions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/typhoon-slider/init.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/typhoon-slider/content-metabox.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/typhoon-slider/CMF/CMF/example-functions.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/typhoon-slider/CMF/init.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 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: bxslider, htmlslider, slider, carousel, fadeslider
typhoon-slider/init.php 92% from 13 tests
The main PHP script in "Typhoon Slider" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("typhoon-slider.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected7,529 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 1,038 | 1,768 | 3,632 |
JavaScript | 8 | 373 | 493 | 2,474 |
CSS | 5 | 149 | 101 | 1,277 |
Markdown | 1 | 35 | 0 | 146 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
Average class complexity | 65.73 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 177.00 |
Average method complexity | 3.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 241 | |
▷ Static methods | 130 | 53.94% |
▷ Public methods | 231 | 95.85% |
▷ Protected methods | 2 | 0.83% |
▷ Private methods | 8 | 3.32% |
Functions | 32 | |
▷ Named functions | 32 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
33 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
CMF/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
bxslider/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |
CMF/images/ui-bg_glass_65_ffffff_1x400.png | 0.10KB | 0.10KB | ▼ 5.71% |
CMF/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
CMF/CMF/images/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |