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: ▲0.13MB] [CPU: ▼4.97ms] Passed 4 tests
Analyzing server-side resources used by Ajax Filter Search
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 46.87 ▲5.28 |
Dashboard /wp-admin | 3.46 ▲0.12 | 53.98 ▼13.01 |
Posts /wp-admin/edit.php | 3.57 ▲0.22 | 56.83 ▲6.67 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 84.67 ▼12.91 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.55 ▲0.78 |
Ajax Filter Search /wp-admin/options-general.php?page=ajax-filter-search | 3.36 | 38.23 |
Server storage [IO: ▲6.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Ajax Filter Search: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,066 ▲305 | 15.17 ▲0.76 | 6.54 ▲4.82 | 41.85 ▼2.67 |
Dashboard /wp-admin | 2,358 ▲181 | 6.37 ▲0.73 | 110.47 ▲23.18 | 38.47 ▼2.09 |
Posts /wp-admin/edit.php | 2,289 ▲189 | 3.53 ▲1.51 | 49.48 ▲14.40 | 30.45 ▼2.84 |
Add New Post /wp-admin/post-new.php | 1,546 ▲20 | 23.91 ▲0.89 | 663.48 ▼23.75 | 39.10 ▼12.71 |
Media Library /wp-admin/upload.php | 1,426 ▲23 | 4.34 ▲0.19 | 80.57 ▼23.04 | 40.49 ▼4.89 |
Ajax Filter Search /wp-admin/options-general.php?page=ajax-filter-search | 1,096 | 3.27 | 39.53 | 25.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ajax-filter-search/ajax-filter-search.php:50
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ajax-filter-search/core/includes/shortcodes.php:259
- > PHP Warning
Use of undefined constant FILTER_TYPE - assumed 'FILTER_TYPE' (this will throw an Error in a future version of PHP) in wp-content/plugins/ajax-filter-search/afs-template/default.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-filter-search/core/includes/functions.php:143
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ajax-filter-search/admin/settings.php:130
- > PHP Fatal error
Uncaught Error: Call to undefined function get_the_time() in wp-content/plugins/ajax-filter-search/afs-template/default.php:11
- > PHP Warning
Use of undefined constant FILTER_TYPE - assumed 'FILTER_TYPE' (this will throw an Error in a future version of PHP) in wp-content/plugins/ajax-filter-search/afs-template/default.php on line 5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 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
10 plugin tags: ajax filter, pagination using ajax, filter posts by year, ajax search, filter posts by month...
ajax-filter-search/ajax-filter-search.php Passed 13 tests
The main PHP file in "Ajax Filter Search" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
80 characters long description:
Displays posts or custom post types in a friendly, filterable format using ajax.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin10,632 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 6 | 77 | 4 | 9,696 |
PHP | 6 | 246 | 248 | 766 |
JavaScript | 4 | 30 | 27 | 111 |
Markdown | 1 | 38 | 0 | 50 |
XML | 6 | 0 | 0 | 6 |
CSS | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 19 | 95.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 15 | |
▷ Global constants | 15 | 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
6 PNG files occupy 0.40MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 67.05KB | 22.65KB | ▼ 66.22% |
assets/screenshot-3.png | 115.84KB | 37.32KB | ▼ 67.78% |
assets/screenshot-2.png | 44.47KB | 15.23KB | ▼ 65.75% |
assets/screenshot-6.png | 32.48KB | 11.57KB | ▼ 64.37% |
assets/screenshot-4.png | 91.64KB | 31.31KB | ▼ 65.84% |