Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼0.13ms] Passed 4 tests
Server-side resources used by WP Search Analytics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 44.49 ▲8.05 |
Dashboard /wp-admin | 3.45 ▲0.14 | 53.41 ▲4.52 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 51.26 ▲2.10 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 88.44 ▼12.00 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.95 ▲4.85 |
MWT: Search Analytics /wp-admin/options-general.php?page=search-analytics | 3.27 | 29.56 |
Search Analytics /wp-admin/index.php?page=search-analytics/admin/includes/class.stats.php | 3.29 | 35.76 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 274 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_mwt_search_terms |
wp_mwt_search_history |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
mwtsa_db_version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by WP Search Analytics
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲71 | 14.21 ▼0.35 | 1.87 ▲0.16 | 43.06 ▲2.29 |
Dashboard /wp-admin | 2,232 ▲54 | 5.64 ▼0.06 | 95.24 ▼5.99 | 42.65 ▼0.48 |
Posts /wp-admin/edit.php | 2,110 ▲10 | 2.02 ▲0.02 | 35.14 ▼2.43 | 36.42 ▼5.81 |
Add New Post /wp-admin/post-new.php | 1,534 ▼16 | 23.15 ▲4.99 | 682.84 ▲5.39 | 47.65 ▼32.25 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.18 ▼0.02 | 94.04 ▼8.51 | 45.96 ▲0.82 |
MWT: Search Analytics /wp-admin/options-general.php?page=search-analytics | 1,261 | 2.00 | 22.84 | 42.50 |
Search Analytics /wp-admin/index.php?page=search-analytics/admin/includes/class.stats.php | 1,292 | 3.02 | 101.28 | 38.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie tables were found after uninstall: 2 tables
- wp_mwt_search_history
- wp_mwt_search_terms
- The uninstall procedure has failed, leaving 7 options in the database
- mwtsa_db_version
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: history, statistics, analytics, search
search-analytics/mwt-search-analytics.php 92% from 13 tests
The principal PHP file in "WP Search Analytics" v. 1.4.8 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("search-analytics.php" instead of "mwt-search-analytics.php")
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
No dangerous file extensions were detected2,503 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 613 | 52 | 2,320 |
JavaScript | 3 | 22 | 14 | 133 |
CSS | 1 | 26 | 0 | 50 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 1 | 5.88% |
Methods | 118 | |
▷ Static methods | 28 | 23.73% |
▷ Public methods | 114 | 96.61% |
▷ Protected methods | 1 | 0.85% |
▷ Private methods | 3 | 2.54% |
Functions | 11 | |
▷ Named functions | 9 | 81.82% |
▷ Anonymous functions | 2 | 18.18% |
Constants | 1 | |
▷ Global constants | 1 | 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
249 compressed PNG files occupy 0.10MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/flags/sx.png | 0.50KB | 0.59KB | 0.00% |
admin/assets/images/flags/pg.png | 0.55KB | 0.64KB | 0.00% |
admin/assets/images/flags/gr.png | 0.32KB | 0.37KB | 0.00% |
admin/assets/images/flags/ls.png | 0.35KB | 0.39KB | 0.00% |
admin/assets/images/flags/hr.png | 0.44KB | 0.48KB | 0.00% |