Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.48MB] [CPU: ▲14.89ms] Passed 4 tests
This is a short check of server-side resources used by WP Search Insights - Privacy-Friendly Search Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 64.65 ▲18.95 |
Dashboard /wp-admin | 3.91 ▲0.56 | 75.44 ▲6.90 |
Posts /wp-admin/edit.php | 3.93 ▲0.58 | 75.39 ▲32.82 |
Add New Post /wp-admin/post-new.php | 6.40 ▲0.51 | 113.53 ▲10.21 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 60.39 ▲23.51 |
WP Search Insights /wp-admin/tools.php?page=wpsi-settings-page | 3.77 | 53.09 |
Server storage [IO: ▲1.20MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 76 new files
Database: 2 new tables, 16 new options
New tables |
---|
wp_searchinsights_archive |
wp_searchinsights_single |
New WordPress options |
---|
wpsi_database_created |
can_compress_scripts |
wpsi-current-version |
db_upgraded |
search_insights_db_version |
wpsi_database_postids_upgrade_completed |
wpsi_select_dashboard_capability |
wpsi_checked_ajax_plugins |
theysaidso_admin_options |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Search Insights - Privacy-Friendly Search Analytics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲188 | 13.88 ▼0.42 | 6.35 ▲4.39 | 31.86 ▼13.40 |
Dashboard /wp-admin | 2,359 ▲185 | 5.88 ▲0.19 | 118.87 ▲29.81 | 100.36 ▲61.04 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 2.02 ▲0.01 | 36.76 ▼1.13 | 32.39 ▼4.37 |
Add New Post /wp-admin/post-new.php | 1,535 ▲7 | 23.50 ▲0.41 | 681.15 ▲29.42 | 57.38 ▼6.93 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.18 ▲0.01 | 103.91 ▲0.89 | 44.37 ▲0.53 |
WP Search Insights /wp-admin/tools.php?page=wpsi-settings-page | 1,990 | 3.28 | 115.40 | 65.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 plugin did not uninstall successfully, leaving 2 tables in the database
- wp_searchinsights_archive
- wp_searchinsights_single
- Zombie WordPress options were found after uninstall: 16 options
- wpsi_select_term_deletion_period
- widget_theysaidso_widget
- widget_recent-comments
- wpsi_max_term_length
- theysaidso_admin_options
- wpsi_min_term_length
- wpsi-current-version
- wpsi_checked_ajax_plugins
- wpsi_database_created
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 23× PHP files perform the task of outputting text when accessed with GET requests (only 10 are shown):
- > /wp-content/plugins/wp-search-insights/class-admin.php
- > /wp-content/plugins/wp-search-insights/templates/tipstricks-element.php
- > /wp-content/plugins/wp-search-insights/cron.php
- > /wp-content/plugins/wp-search-insights/class-help.php
- > /wp-content/plugins/wp-search-insights/class-review.php
- > /wp-content/plugins/wp-search-insights/templates/grid-dashboard-row.php
- > /wp-content/plugins/wp-search-insights/grid/grid.php
- > /wp-content/plugins/wp-search-insights/wp-search-insights.php
- > /wp-content/plugins/wp-search-insights/grid/templates/grid-container.php
- > /wp-content/plugins/wp-search-insights/grid/templates/grid-element.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-search-insights/integrations/toolset.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: history, statistics, recording searches, search, analytics
wp-search-insights/wp-search-insights.php 92% from 13 tests
The principal PHP file in "WP Search Insights - Privacy-Friendly Search Analytics" v. 1.3.8 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected14,135 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 21 | 1,650 | 2,793 | 8,002 |
PHP | 25 | 645 | 600 | 2,882 |
CSS | 10 | 84 | 93 | 1,875 |
LESS | 3 | 296 | 101 | 1,362 |
SVG | 2 | 1 | 0 | 14 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 37.88 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 3.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 109 | |
▷ Static methods | 8 | 7.34% |
▷ Public methods | 98 | 89.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 11 | 10.09% |
Functions | 18 | |
▷ Named functions | 17 | 94.44% |
▷ Anonymous functions | 1 | 5.56% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/logo.png | 12.26KB | 6.33KB | ▼ 48.39% |
assets/images/rsssl-logo.png | 18.51KB | 5.85KB | ▼ 68.41% |
assets/images/really-simple-plugins.png | 8.39KB | 8.04KB | ▼ 4.14% |
assets/images/sort_desc.png | 1.04KB | 0.25KB | ▼ 76.32% |
assets/images/complianz-logo.png | 6.31KB | 3.61KB | ▼ 42.80% |