Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.87MB] [CPU: ▲1.85ms] Passed 4 tests
Server-side resources used by WP Fastest Site Search
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.37 ▲0.91 | 49.53 ▲5.86 |
Dashboard /wp-admin | 4.21 ▲0.90 | 52.18 ▲2.51 |
Posts /wp-admin/edit.php | 4.26 ▲0.90 | 55.99 ▲4.69 |
Add New Post /wp-admin/post-new.php | 6.75 ▲0.86 | 90.79 ▼5.65 |
Media Library /wp-admin/upload.php | 4.07 ▲0.84 | 42.87 ▲9.58 |
Server storage [IO: ▲1.59MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 94 new files
Database: no new tables, 12 new options
New WordPress options |
---|
expertrec_options_RO |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
expertrec_options |
exp_woocommerce_product_attributes |
exp_meta_keys |
exp_sentry_enabled |
db_upgraded |
theysaidso_admin_options |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP Fastest Site Search
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,961 ▲214 | 14.13 ▼0.59 | 28.46 ▲26.65 | 64.45 ▲22.88 |
Dashboard /wp-admin | 2,202 ▲31 | 5.75 ▲0.10 | 95.97 ▼3.96 | 94.69 ▲47.14 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 2.18 ▲0.23 | 38.78 ▼2.04 | 37.15 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,546 ▲1 | 23.77 ▲0.78 | 798.88 ▲156.77 | 54.72 ▲6.28 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.32 ▲0.11 | 99.72 ▼5.35 | 62.17 ▲18.52 |
Uninstaller [IO: ▲0.01MB] [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 uninstall procedure has failed, leaving 10 options in the database
- widget_theysaidso_widget
- exp_meta_keys
- exp_woocommerce_product_attributes
- db_upgraded
- widget_recent-comments
- exp_sentry_enabled
- exp_selected_doc_types
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-fastest-site-search/hooks/expertrecsearch-ajax.php
- > /wp-content/plugins/wp-fastest-site-search/views/expertrec-page-header.php
- > /wp-content/plugins/wp-fastest-site-search/uninstall.php
- > /wp-content/plugins/wp-fastest-site-search/views/expertrec-login.php
- > /wp-content/plugins/wp-fastest-site-search/views/expertrec-page-footer.php
- > /wp-content/plugins/wp-fastest-site-search/hooks/expertrecsearch-caller.php
- > /wp-content/plugins/wp-fastest-site-search/expertrecsearch.php
- > /wp-content/plugins/wp-fastest-site-search/views/expertrec-help.php
- 21× 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 get_option() in wp-content/plugins/wp-fastest-site-search/views/expertrec-settings.php:31
- > PHP Fatal error
Uncaught Error: Class 'Monolog\\Handler\\AbstractProcessingHandler' not found in wp-content/plugins/wp-fastest-site-search/vendor/sentry/sentry/lib/Raven/Breadcrumbs/MonologHandler.php:6
- > PHP Warning
require_once(EXPERTREC_PLUGIN_DIR_PATHhooks/expertrecsearch-caller.php): failed to open stream: No such file or directory in wp-content/plugins/wp-fastest-site-search/includes/class-expertrecsearch.php on line 30
- > PHP Warning
Use of undefined constant EXPERTREC_PLUGIN_DIR_PATH - assumed 'EXPERTREC_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-fastest-site-search/includes/class-expertrecsearch.php on line 30
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-fastest-site-search/views/expertrec-advanced.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/wp-fastest-site-search/views/expertrec-ui.php:17
- > PHP Warning
Use of undefined constant EXPERTREC_PLUGIN_DIR_PATH - assumed 'EXPERTREC_PLUGIN_DIR_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-fastest-site-search/includes/class-expertrecsearch-activator.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-fastest-site-search/includes/class-expertrecsearch-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-fastest-site-search/public/templates/expertrec-search-page.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-fastest-site-search/views/expertrec-login.php:106
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #2, #2, #4, #6 in wp-fastest-site-search/assets to your readme.txt
wp-fastest-site-search/expertrecsearch.php 77% from 13 tests
The entry point to "WP Fastest Site Search" version 5.1.24 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-fastest-site-search.php" instead of "expertrecsearch.php")
- Description: Keep the plugin description shorter than 140 characters (currently 242 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 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected7,271 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 57 | 1,066 | 2,323 | 6,395 |
JavaScript | 3 | 34 | 80 | 542 |
JSON | 3 | 0 | 0 | 130 |
SVG | 2 | 0 | 1 | 89 |
HTML | 1 | 2 | 0 | 31 |
YAML | 1 | 7 | 0 | 26 |
XML | 1 | 2 | 0 | 22 |
reStructuredText | 1 | 20 | 11 | 19 |
make | 1 | 6 | 0 | 15 |
CSS | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 154.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 1 | 3.33% |
▷ Concrete classes | 29 | 96.67% |
▷ Final classes | 0 | 0.00% |
Methods | 264 | |
▷ Static methods | 43 | 16.29% |
▷ Public methods | 212 | 80.30% |
▷ Protected methods | 16 | 6.06% |
▷ Private methods | 36 | 13.64% |
Functions | 85 | |
▷ Named functions | 80 | 94.12% |
▷ Anonymous functions | 5 | 5.88% |
Constants | 34 | |
▷ Global constants | 16 | 47.06% |
▷ Class constants | 18 | 52.94% |
▷ Public constants | 18 | 100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/expertrec.png | 1.26KB | 0.84KB | ▼ 33.07% |