Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼156.24ms] Passed 4 tests
An overview of server-side resources used by Spin Interactive Slider
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 43.57 ▲16.76 |
Dashboard /wp-admin | 3.08 ▲0.02 | 42.71 ▼10.75 |
Posts /wp-admin/edit.php | 3.13 ▲0.02 | 52.61 ▼1.45 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 100.36 ▼612.08 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 37.67 ▼0.66 |
Spin Interactive Slider /wp-admin/options-general.php?page=spin-interactive-slider | 2.99 | 32.63 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Spin Interactive Slider
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,961 ▲365 | 16.23 ▲0.38 | 15.02 ▲5.31 | 55.21 ▲4.17 |
Dashboard /wp-admin | 2,997 ▲66 | 5.98 ▲0.02 | 153.77 ▼18.24 | 135.61 ▲10.03 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▼0.01 | 72.90 ▼7.66 | 95.84 ▼3.98 |
Add New Post /wp-admin/post-new.php | 1,686 ▲105 | 18.40 ▲0.88 | 430.16 ▼12.44 | 121.79 ▲5.53 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▼0.01 | 164.27 ▼21.98 | 127.94 ▼1.17 |
Spin Interactive Slider /wp-admin/options-general.php?page=spin-interactive-slider | 1,069 | 2.10 | 61.76 | 93.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/jquery-slider-with-text/spininteractive-slider.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/jquery-slider-with-text/views/default.php:4
- > PHP Fatal error
Uncaught Error: Call to a member function query() on null in wp-content/plugins/jquery-slider-with-text/views/form.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #1 is required in jquery-slider-with-text/assets to your readme.txt
jquery-slider-with-text/spininteractive-slider.php 92% from 13 tests
The main PHP file in "Spin Interactive Slider" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("jquery-slider-with-text.php" instead of "spininteractive-slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected257 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 26 | 33 | 176 |
JavaScript | 1 | 10 | 0 | 71 |
CSS | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 7 | 87.50% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/images/bg.png | 0.25KB | 0.09KB | ▼ 62.65% |
inc/images/arrows.png | 5.63KB | 3.45KB | ▼ 38.77% |