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.30MB] [CPU: ▼9.64ms] Passed 4 tests
An overview of server-side resources used by Talash - Advanced Search Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.79 ▲0.33 | 40.99 ▲1.42 |
Dashboard /wp-admin | 3.66 ▲0.31 | 50.59 ▼11.07 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 49.59 ▼3.20 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 84.84 ▼24.87 |
Media Library /wp-admin/upload.php | 3.52 ▲0.29 | 35.67 ▲0.60 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Talash - Advanced Search Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲163 | 13.57 ▼0.83 | 11.30 ▲9.34 | 41.77 ▼1.94 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▼0.05 | 86.36 ▼33.50 | 37.23 ▼8.35 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.03 | 35.72 ▼7.51 | 33.46 ▼2.75 |
Add New Post /wp-admin/post-new.php | 1,526 ▼14 | 17.51 ▼5.64 | 655.54 ▼24.25 | 62.88 ▲11.84 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.24 ▲0.04 | 96.65 ▼9.87 | 45.18 ▼0.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require(): Failed opening required 'TALASH_DIR_PATHadmin/customizer/controls/partials/input-field.php' (include_path='.:/usr/share/php') in wp-content/plugins/talash/admin/customizer/controls/talash-controls.php on line 2
- > PHP Warning
Use of undefined constant TALASH_DIR_PATH - assumed 'TALASH_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/talash/admin/customizer/controls/talash-controls.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Control' not found in wp-content/plugins/talash/admin/customizer/custom-controls/heading-control.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/talash/admin/customizer/style.php:17
- > PHP Warning
require(TALASH_DIR_PATHadmin/customizer/controls/partials/input-field.php): failed to open stream: No such file or directory in wp-content/plugins/talash/admin/customizer/controls/talash-controls.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/talash/public/template.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: advanced-search, cpt, advanced, post, search...
talash/talash.php 85% from 13 tests
The main file in "Talash - Advanced Search Plugin" v. 1.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 217 characters long)
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected4,126 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 312 | 153 | 1,843 |
JavaScript | 5 | 352 | 183 | 1,379 |
CSS | 3 | 120 | 2 | 904 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.21 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 52 | 67.53% |
▷ Public methods | 63 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 18.18% |
Functions | 15 | |
▷ Named functions | 13 | 86.67% |
▷ Anonymous functions | 2 | 13.33% |
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
3 PNG files occupy 0.15MB with 0.09MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/talash-placeholder.png | 2.57KB | 1.43KB | ▼ 44.50% |
assets/wp-assets/banner-1544x500.png | 107.23KB | 40.68KB | ▼ 62.07% |
assets/wp-assets/banner-772x259.png | 45.96KB | 17.34KB | ▼ 62.27% |