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.06MB] [CPU: ▼6.93ms] Passed 4 tests
A check of server-side resources used by Swiper Js Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.23 ▲2.05 |
Dashboard /wp-admin | 3.36 ▲0.05 | 53.16 ▲0.14 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 52.46 ▲7.24 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 84.90 ▼15.71 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.31 ▼14.18 |
All Items /wp-admin/edit.php?post_type=swiper_js_slides | 3.33 | 43.08 |
Add New /wp-admin/post-new.php?post_type=swiper_js_slides | 3.39 | 49.74 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Swiper Js Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,087 ▲341 | 15.68 ▲1.38 | 8.38 ▲6.56 | 45.91 ▲1.14 |
Dashboard /wp-admin | 2,362 ▲174 | 6.41 ▲0.55 | 129.61 ▲13.49 | 92.98 ▲46.83 |
Posts /wp-admin/edit.php | 2,286 ▲200 | 3.37 ▲1.37 | 51.15 ▲14.93 | 68.08 ▲32.06 |
Add New Post /wp-admin/post-new.php | 1,544 ▲25 | 17.53 ▼5.62 | 669.97 ▲37.60 | 37.49 ▼13.53 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.12 ▼0.09 | 81.85 ▼28.31 | 89.07 ▲41.22 |
All Items /wp-admin/edit.php?post_type=swiper_js_slides | 1,274 | 3.31 | 46.20 | 64.41 |
Add New /wp-admin/post-new.php?post_type=swiper_js_slides | 2,788 | 4.00 | 78.74 | 122.85 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/swiper-js-slider/swiper-js-slider.php
- > /wp-content/plugins/swiper-js-slider/index.php
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/swiper-js-slider/views/metabox/pagination-meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/swiper-js-slider/views/meta-box-options.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/swiper-js-slider/views/metabox/breakpoints-meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/swiper-js-slider/views/metabox/navigation-meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/swiper-js-slider/inc/post-types.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/swiper-js-slider/views/metabox/carousel-meta.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/swiper-js-slider/views/metabox/parameters-meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/swiper-js-slider/views/front-columns.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/swiper-js-slider/shortcode/slide-js-shortcode.php:178
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/swiper-js-slider/views/metabox/autoplay-meta.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: swiper, carousel, multirow, image slider, js slider...
swiper-js-slider/swiper-js-slider.php 85% from 13 tests
"Swiper Js Slider" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Requires PHP: The required version number did not match the one declared in readme.txt ("5.2.4" instead of "7.3")
- Requires at least: The required version number did not match the one declared in readme.txt ("5.1" instead of "5.3")
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,762 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 111 | 66 | 1,212 |
CSS | 3 | 68 | 11 | 345 |
JavaScript | 3 | 48 | 15 | 205 |
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.17 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/logo.png | 0.39KB | 0.39KB | 0.00% |