Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼136.69ms] Passed 4 tests
Analyzing server-side resources used by Versitile jQuery Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.04 | 35.88 ▲0.94 |
Dashboard /wp-admin | 3.10 ▲0.05 | 52.87 ▲10.17 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 44.02 ▲3.45 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.02 | 90.47 ▼553.19 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 34.06 ▲2.05 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Versitile jQuery Slider
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲117 | 15.84 ▲0.32 | 11.64 ▲0.42 | 46.37 ▼1.23 |
Dashboard /wp-admin | 2,970 ▲33 | 6.14 ▲0.13 | 149.57 ▼2.91 | 112.15 ▲7.50 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.01 | 63.47 ▼2.85 | 87.43 ▼0.60 |
Add New Post /wp-admin/post-new.php | 1,672 ▼0 | 18.87 ▲0.05 | 388.89 ▼8.79 | 104.59 ▲1.94 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.04 ▼0.00 | 145.28 ▼19.88 | 112.63 ▼8.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
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 everything seems fine, this is not an exhaustive test
SRP 50% 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 fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/versatile-jquery-slider/versatile-jquery-slider.php:181
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: slider, slideshow, jquery slider, jquery slideshow, responsive slider...
versatile-jquery-slider/versatile-jquery-slider.php Passed 13 tests
"Versitile jQuery Slider" version 1.1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
104 characters long description:
Set up an easy, versatile, responsive slider with images or any HTML content. Powered by jQuery Cycle2.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin374 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 65 | 61 | 230 |
Markdown | 1 | 42 | 0 | 62 |
CSS | 1 | 4 | 0 | 43 |
JavaScript | 21 | 0 | 29 | 39 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/arrow-left.png | 2.43KB | 1.13KB | ▼ 53.45% |
img/arrow-right.png | 2.48KB | 1.11KB | ▼ 55.39% |