Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.23ms] Passed 4 tests
An overview of server-side resources used by FWD Slider
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 47.91 ▲9.11 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.12 ▼3.64 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.56 ▲3.32 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.92 ▼15.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 35.50 ▼1.02 |
FWD Slider /wp-admin/admin.php?page=slide_me | 3.26 | 32.63 |
add new /wp-admin/admin.php?page=add_new | 3.25 | 34.00 |
Setting /wp-admin/admin.php?page=slide_set | 3.24 | 28.72 |
Server storage [IO: ▲0.89MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 28 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_fwds_plugin |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FWD Slider
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲170 | 13.40 ▼1.23 | 8.53 ▲6.09 | 47.77 ▲2.59 |
Dashboard /wp-admin | 2,225 ▲51 | 5.66 ▼0.00 | 81.61 ▼12.80 | 70.98 ▲28.38 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.00 ▲0.03 | 33.68 ▼5.49 | 34.03 ▼4.53 |
Add New Post /wp-admin/post-new.php | 1,566 ▲40 | 23.25 ▼0.08 | 667.77 ▼0.90 | 111.04 ▲49.31 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.12 ▼0.11 | 114.05 ▲18.88 | 85.54 ▲44.73 |
FWD Slider /wp-admin/admin.php?page=slide_me | 1,084 | 1.84 | 39.46 | 80.70 |
add new /wp-admin/admin.php?page=add_new | 953 | 1.68 | 24.30 | 37.26 |
Setting /wp-admin/admin.php?page=slide_set | 937 | 1.99 | 24.99 | 31.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=slide_me
- > Notice in wp-content/plugins/fwd-slider/pages/fwds_show.php+40
Undefined index: pagenum
- > GET request to /wp-admin/admin.php?page=slide_me
- > Notice in wp-content/plugins/fwd-slider/pages/fwds_show.php+131
Undefined index: fwds_type
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
Almost there! Just fix the following items
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/fwd-slider/pages/fwds_edit.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fwd-slider/pages/fwds_add.php:54
- > PHP Warning
Use of undefined constant WP_fwds_TITLE - assumed 'WP_fwds_TITLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/fwd-slider/pages/fwds_show.php on line 16
- > PHP Warning
Use of undefined constant WP_fwds_TITLE - assumed 'WP_fwds_TITLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/fwd-slider/pages/fwds_set.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fwd-slider/pages/fwds_info.php:88
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/fwd-slider/fwd_slider.php on line 10
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/fwd-slider/fwd_slider.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fwd-slider/pages/fwds_show.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/fwd-slider/pages/fwds_set.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fwd-slider/fwd_slider.php:65
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/admin.php?page=slide_me
- > Network (severe)
wp-content/plugins/fwd-slider/css/img/btns-next-prev.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/admin.php?page=slide_me
- > Network (severe)
wp-content/plugins/fwd-slider/css/img/pagination.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (backend showing preview of generated sliders), #2 (Page for entering multiple images to slider type just by clicking on add more images), #3 (sliders display on front-end), #4 (setting page where you can control your height width and rotation speed)
fwd-slider/fwd_slider.php 92% from 13 tests
The primary PHP file in "FWD Slider" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("fwd-slider.php" instead of "fwd_slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,765 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 71 | 81 | 1,821 |
PHP | 6 | 145 | 10 | 647 |
SVG | 1 | 0 | 0 | 284 |
JavaScript | 3 | 1 | 9 | 13 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.27MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 0.77KB | 0.82KB | 0.00% |
Screenshot-3.png | 23.17KB | 6.97KB | ▼ 69.91% |
Screenshot-4.png | 95.49KB | 35.53KB | ▼ 62.79% |
Screenshot-1.png | 111.06KB | 37.29KB | ▼ 66.43% |
Screenshot-2.png | 47.13KB | 17.84KB | ▼ 62.14% |