Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼1.02ms] Passed 4 tests
Server-side resources used by Fiverr.com Official Search Box
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 37.82 ▼2.15 |
Dashboard /wp-admin | 3.44 ▲0.13 | 46.50 ▼1.78 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 53.06 ▲7.98 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 85.26 ▼3.20 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.93 ▲3.07 |
Fiverr Affiliate Settings /wp-admin/options-general.php?page=fiverrwidget | 3.35 | 31.59 |
Server storage [IO: ▲10.50MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 133 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_wpb_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Fiverr.com Official Search Box
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲169 | 13.39 ▼0.90 | 1.91 ▼0.12 | 41.46 ▼6.62 |
Dashboard /wp-admin | 2,288 ▲97 | 5.20 ▲0.27 | 121.34 ▲19.33 | 39.27 ▼0.43 |
Posts /wp-admin/edit.php | 2,171 ▲82 | 2.47 ▲0.44 | 48.64 ▲13.05 | 35.32 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,584 ▲70 | 23.29 ▼0.12 | 589.76 ▼91.99 | 33.65 ▼22.56 |
Media Library /wp-admin/upload.php | 1,470 ▲82 | 4.52 ▲0.28 | 102.02 ▼0.87 | 42.43 ▼2.50 |
Fiverr Affiliate Settings /wp-admin/options-general.php?page=fiverrwidget | 1,298 | 2.35 | 52.74 | 65.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_wpb_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=fiverrwidget
- > Notice in wp-content/plugins/fiverr-official-search-box/inc/fawp-class-helper.php+142
Trying to access array offset on value of type bool
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
Please fix the following items
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/fiverr-official-search-box/admin/tpl/admin_notice.php
- > /wp-content/plugins/fiverr-official-search-box/admin/tpl/main.php
- > /wp-content/plugins/fiverr-official-search-box/inc/tpl-widget.php
- 23× 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 fiverrAffiliateWidgetPlugin() in wp-content/plugins/fiverr-official-search-box/admin/tpl/shortcode-popup.php:2
- > PHP Notice
Undefined variable: logo in wp-content/plugins/fiverr-official-search-box/inc/tpl-widget.php on line 7
- > PHP Notice
Undefined variable: title in wp-content/plugins/fiverr-official-search-box/inc/tpl-widget.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/fiverr-official-search-box/inc/tpl-widget.php on line 7
- > PHP Notice
Undefined variable: search_placeholder in wp-content/plugins/fiverr-official-search-box/inc/tpl-widget.php on line 17
- > PHP Notice
Undefined variable: widget_style in wp-content/plugins/fiverr-official-search-box/inc/tpl-widget.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fiverr-official-search-box/inc/wp-fiverr-affiliate-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/fiverr-official-search-box/inc/fawp-class.php:389
- > PHP Notice
Undefined variable: widget_style in wp-content/plugins/fiverr-official-search-box/inc/tpl-widget.php on line 2
- > PHP Notice
Undefined variable: widget_style in wp-content/plugins/fiverr-official-search-box/inc/tpl-widget.php on line 1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt Passed 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
No plugin tags provided
fiverr-official-search-box/fiverrwidget-plugin.php 62% from 13 tests
"Fiverr.com Official Search Box" version 1.0.8'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:
- Domain Path: The domain path is invalid: folder "/lang" does not exist
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fiverr-official-search-box.php" instead of "fiverrwidget-plugin.php")
- Requires at least: Required version does not match the one declared in readme.txt ("4.9" instead of "4.7.0")
- Description: Keep the plugin description shorter than 140 characters (currently 212 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected4,168 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 247 | 599 | 1,923 |
PHP | 10 | 5 | 131 | 776 |
CSS | 15 | 76 | 85 | 707 |
HTML | 2 | 0 | 0 | 700 |
SVG | 12 | 0 | 0 | 59 |
Sass | 1 | 0 | 1 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 25.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 2 | 6.06% |
▷ Public methods | 26 | 78.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 21.21% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 26 | |
▷ Global constants | 26 | 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
13 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/tooltip-icon.png | 0.49KB | 0.36KB | ▼ 26.35% |
assets/img/reset-icon.png | 0.28KB | 0.28KB | 0.00% |
assets/img/radio-active-icon.png | 0.54KB | 0.39KB | ▼ 26.78% |
assets/img/fiverr-logo-regular-setting.png | 1.01KB | 0.62KB | ▼ 38.48% |
assets/img/select-icon.png | 0.21KB | 0.17KB | ▼ 20.47% |