Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼5.16ms] Passed 4 tests
A check of server-side resources used by Custom AJAX Search Results (C.A.S.R.)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 46.81 ▲2.88 |
Dashboard /wp-admin | 3.42 ▲0.11 | 53.79 ▼2.20 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 49.52 ▲0.17 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 83.00 ▼18.97 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.40 ▲0.38 |
C.A.S.R. /wp-admin/options-general.php?page=custom-ajax-search-results | 3.29 | 31.88 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Custom AJAX Search Results (C.A.S.R.): an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲86 | 13.40 ▼1.02 | 8.52 ▲6.13 | 42.49 ▼5.27 |
Dashboard /wp-admin | 2,202 ▲25 | 5.63 ▲0.02 | 95.82 ▲6.45 | 42.36 ▼1.32 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.95 ▼0.08 | 33.28 ▼3.41 | 35.28 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.95 ▼0.07 | 628.10 ▼45.81 | 55.46 ▲1.34 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.20 ▲0.03 | 96.30 ▼7.56 | 44.08 ▼3.92 |
C.A.S.R. /wp-admin/options-general.php?page=custom-ajax-search-results | 923 | 2.01 | 26.11 | 27.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=custom-ajax-search-results
- > Notice in wp-content/plugins/custom-ajax-search-results/includes/class-casr-settings-page.php+32
Undefined index: tab
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 items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/custom-ajax-search-results/includes/reusable/casr-ajax-get-settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-ajax-search-results/includes/class-casr.php:5
- > PHP Notice
Undefined variable: casr_search in wp-content/plugins/custom-ajax-search-results/includes/reusable/casr-content.php on line 6
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/custom-ajax-search-results/includes/reusable/casr-content.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-ajax-search-results/includes/class-casr.php:5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=custom-ajax-search-results
- > Network (severe)
wp-content/plugins/custom-ajax-search-results/admin/js/casr-admin.js?ver=1.0.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: seo friendly, lightweight, ajax search, fast, ajax...
custom-ajax-search-results/casr.php 92% from 13 tests
The main file in "Custom AJAX Search Results (C.A.S.R.)" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-ajax-search-results.php" instead of "casr.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin451 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 70 | 61 | 388 |
JavaScript | 2 | 7 | 0 | 54 |
CSS | 1 | 1 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 18.18% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected