Benchmarks
Plugin footprint 83% 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: ▼1.07MB] [CPU: ▼331.19ms] Passed 4 tests
Server-side resources used by Advanced Theme Search
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.19 | 68.20 ▲12.11 |
Dashboard /wp-admin | 3.26 ▼0.14 | 19.82 ▼15.16 |
Posts /wp-admin/edit.php | 3.26 ▼0.38 | 20.92 ▼18.70 |
Add New Post /wp-admin/post-new.php | 3.26 ▼3.71 | 22.22 ▼1,276.58 |
Media Library /wp-admin/upload.php | 3.26 ▼0.04 | 20.25 ▼14.33 |
Advanced Theme Search /wp-admin/options-general.php?page=klick_ats | 3.26 | 29.53 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 52 new files
Database: no new tables, 2 new options
New WordPress options |
---|
klick-ats-logging |
klick-ats-advanced-search-toggle |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Theme Search
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,952 ▲198 | 17.13 ▲1.23 | 9.30 ▲3.01 | 2.51 ▲0.06 |
Dashboard /wp-admin | 2,932 ▲45 | 6.45 ▼0.04 | 132.87 ▼6.02 | 156.57 ▼8.23 |
Posts /wp-admin/edit.php | 2,699 ▲5 | 3.57 ▲0.01 | 61.50 ▲2.28 | 141.23 ▼3.70 |
Add New Post /wp-admin/post-new.php | 1,672 ▼45 | 22.27 ▲4.51 | 430.93 ▲14.68 | 159.70 ▲1.21 |
Media Library /wp-admin/upload.php | 1,706 ▲8 | 5.72 ▼0.01 | 138.25 ▼4.76 | 240.34 ▲47.58 |
Advanced Theme Search /wp-admin/options-general.php?page=klick_ats | 1,921 | 2.83 | 61.27 | 153.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 gracefully
- > User notice in wp-includes/functions.php+5768
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=klick_ats
- > User notice in wp-includes/functions.php+5768
add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be an integer representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
SRP 0% 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
Please take a closer look at the following
- 15× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/advanced-theme-search/templates/notices-templates/horizontal-notice.php
- > /wp-content/plugins/advanced-theme-search/includes/class-klick-ats-email-logger.php
- > /wp-content/plugins/advanced-theme-search/includes/class-klick-ats-logger.php
- > /wp-content/plugins/advanced-theme-search/includes/class-klick-ats-options.php
- > /wp-content/plugins/advanced-theme-search/templates/notices-templates/main-dashboard-notices.php
- > /wp-content/plugins/advanced-theme-search/includes/class-klick-ats-php-logger.php
- > /wp-content/plugins/advanced-theme-search/templates/klick-ats-tabs-header.php
- > /wp-content/plugins/advanced-theme-search/includes/class-klick-ats-notifier.php
- > /wp-content/plugins/advanced-theme-search/includes/class-klick-ats-abstract-logger.php
- > /wp-content/plugins/advanced-theme-search/includes/class-klick-ats-db-operations.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-theme-search/templates/klick-ats-tab-ats-manage.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-theme-search/templates/klick-ats-tab-our-other-plugins.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-theme-search/templates/klick-ats-tab-ats-manage-settings.php:11
- > PHP Warning
Use of undefined constant KLICK_ATS_PLUGIN_URL - assumed 'KLICK_ATS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-theme-search/templates/klick-ats-tab-our-other-plugins.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-themes-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/advanced-theme-search/templates/klick-ats-tab-ats-manage.php on line 6
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-themes-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-theme-search/templates/klick-ats-tab-ats-manage.php on line 6
- > PHP Warning
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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Advanced Theme Search enable/disable Tab), #2 (Download theme data to local DB), #3 (Do Advance search by selecting various parameters)
advanced-theme-search/advanced-theme-search.php 85% from 13 tests
Analyzing the main PHP file in "Advanced Theme Search" version 0.0.2
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 183 characters long)
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 detected2,768 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 423 | 623 | 1,395 |
CSS | 6 | 33 | 16 | 615 |
SVG | 10 | 0 | 10 | 475 |
JavaScript | 3 | 49 | 119 | 228 |
Markdown | 1 | 35 | 0 | 55 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 6 | 6.59% |
▷ Public methods | 90 | 98.90% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.10% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.14MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/notices/cs_sample_notice_icon.png | 20.74KB | 1.79KB | ▼ 91.39% |
images/small_icon.png | 18.12KB | 0.45KB | ▼ 97.52% |
images/notices/cs_sample_notice_icon2.png | 9.63KB | 4.69KB | ▼ 51.23% |
images/ats-banner.png | 62.17KB | 21.45KB | ▼ 65.50% |
images/notices/cs_sample_notice_icon3.png | 30.17KB | 6.04KB | ▼ 79.98% |