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: ▲0.01MB] [CPU: ▼11.49ms] Passed 4 tests
A check of server-side resources used by WP Slider Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.50 ▼7.47 |
Dashboard /wp-admin | 3.32 ▼0.02 | 49.01 ▼18.08 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.42 ▼0.82 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 86.22 ▼19.57 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 42.08 ▲5.03 |
Banners /wp-admin/admin.php?page=banners | 3.22 | 33.25 |
Members /wp-admin/admin.php?page=members | 3.22 | 35.16 |
Instructions /wp-admin/admin.php?page=instructions | 3.21 | 30.13 |
Add Banner /wp-admin/admin.php?page=banners_form | 3.19 | 28.14 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 14 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_jss_sf_banners |
wp_jss_sf_members |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
jss_sf_db_version |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Slider Forms
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲78 | 14.23 ▼0.38 | 1.66 ▼0.07 | 41.46 ▲0.61 |
Dashboard /wp-admin | 2,224 ▲44 | 5.53 ▼0.14 | 86.84 ▼8.02 | 38.55 ▼4.01 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.96 ▼0.07 | 35.77 ▼4.49 | 33.29 ▼5.90 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.00 ▼0.61 | 701.59 ▲8.92 | 58.55 ▲0.40 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.19 ▼0.11 | 107.30 ▲3.35 | 45.83 ▼1.31 |
Banners /wp-admin/admin.php?page=banners | 1,018 | 2.04 | 25.35 | 29.75 |
Members /wp-admin/admin.php?page=members | 960 | 2.01 | 24.82 | 28.66 |
Instructions /wp-admin/admin.php?page=instructions | 866 | 2.03 | 23.56 | 26.12 |
Add Banner /wp-admin/admin.php?page=banners_form | 918 | 2.04 | 30.57 | 33.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 2 tables
- wp_jss_sf_banners
- wp_jss_sf_members
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- jss_sf_db_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=banners_form
- > Notice in wp-content/plugins/wp-slider-forms/jss_sf_banners.php+299
Undefined index: nonce
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-slider-forms/slider_forms_jolshiri.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-slider-forms/shortcodes.php:156
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-slider-forms/jss_sf_banners.php on line 13
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-slider-forms/jss_sf_banners.php on line 13
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/wp-slider-forms/jss_sf_members.php:3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-slider-forms/jss_sf_banners.php on line 13
- > 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 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Donate link: Invalid url: "www.jolshiri.com"
- Screenshots: Add an image for screenshot #1 (Screenshot1 Admin area adding new banner.)
wp-slider-forms/slider_forms_jolshiri.php 85% from 13 tests
"WP Slider Forms" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-slider-forms.php" instead of "slider_forms_jolshiri.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 295 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected4,228 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 477 | 2,618 | 3,305 |
JavaScript | 1 | 67 | 464 | 780 |
CSS | 1 | 33 | 21 | 143 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 516)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 188.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 728.00 |
Average method complexity | 19.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 516.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 41 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
jss_sf_screenshot_1.png | 14.88KB | 5.38KB | ▼ 63.83% |
bxslider/images/controls.png | 2.74KB | 1.42KB | ▼ 48.29% |