Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼1.18ms] Passed 4 tests
A check of server-side resources used by T4B Featured Slider
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 52.23 ▲7.16 |
Dashboard /wp-admin | 3.38 ▲0.08 | 61.53 ▲6.30 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 59.09 ▼0.91 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 97.36 ▼17.25 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 51.78 ▲11.24 |
Featured /wp-admin/admin.php?page=t4b_featured | 3.27 | 51.80 |
Settings /wp-admin/admin.php?page=t4b_settings | 3.32 | 56.01 |
Usage /wp-admin/admin.php?page=t4b-featured-slider/t4b_admin.php | 3.28 | 49.36 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_t4b_id_lists |
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
T4B Featured Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 14.54 ▲0.19 | 1.64 ▲0.03 | 43.88 ▲0.21 |
Dashboard /wp-admin | 2,234 ▲54 | 4.89 ▼0.77 | 86.76 ▼1.17 | 70.88 ▲26.43 |
Posts /wp-admin/edit.php | 2,155 ▲55 | 2.32 ▲0.26 | 36.80 ▲0.04 | 38.61 ▼4.56 |
Add New Post /wp-admin/post-new.php | 1,567 ▲39 | 23.09 ▼0.31 | 670.64 ▲10.26 | 39.38 ▼25.35 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.44 ▲0.25 | 114.86 ▲6.69 | 84.41 ▲41.92 |
Featured /wp-admin/admin.php?page=t4b_featured | 1,083 | 2.03 | 30.52 | 35.00 |
Settings /wp-admin/admin.php?page=t4b_settings | 1,392 | 2.02 | 29.04 | 34.72 |
Usage /wp-admin/admin.php?page=t4b-featured-slider/t4b_admin.php | 1,119 | 2.03 | 27.87 | 41.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_t4b_id_lists
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/t4b-featured-slider/admin/usage.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/t4b-featured-slider/admin/settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function t4b_sidebar() in wp-content/plugins/t4b-featured-slider/admin/usage.php:59
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/t4b-featured-slider/t4b_featured_slider.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function get_featured_post_lists() in wp-content/plugins/t4b-featured-slider/admin/featured.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/t4b-featured-slider/t4b_admin.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=t4b-featured-slider/t4b_admin.php
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/t4b-featured-slider/js/t4b-admin.js?ver=1.5.1:27:21)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=t4b-featured-slider/t4b_admin.php
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (List of Featured Post.), #2 (Edit/Add Featured Post.), #3 (Slider Settings.), #4 (Featured Slider Display.)
t4b-featured-slider/t4b_featured_slider.php 85% from 13 tests
The entry point to "T4B Featured Slider" version 1.5.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("t4b-featured-slider.php" instead of "t4b_featured_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
No dangerous file extensions were detected677 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 9 | 22 | 570 |
JavaScript | 2 | 2 | 11 | 64 |
CSS | 1 | 0 | 4 | 43 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
11 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/red.png | 0.92KB | 0.93KB | 0.00% |
images/coga.png | 2.87KB | 0.18KB | ▼ 93.63% |
screenshot-1.png | 11.03KB | 10.19KB | ▼ 7.63% |
images/cog.png | 0.22KB | 0.19KB | ▼ 17.39% |
images/featured.png | 4.37KB | 1.54KB | ▼ 64.83% |