Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.30ms] Passed 4 tests
An overview of server-side resources used by Site Search Analytics by Measured Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 40.14 ▼3.53 |
Dashboard /wp-admin | 3.32 ▲0.02 | 45.95 ▼3.85 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.55 ▼0.14 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.99 ▼4.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.41 ▼1.62 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Site Search Analytics by Measured Search
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 13.68 ▼0.74 | 1.70 ▼0.74 | 40.13 ▼0.74 |
Dashboard /wp-admin | 2,222 ▲34 | 4.86 ▼0.06 | 105.82 ▲1.04 | 39.34 ▼5.88 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.17 ▲0.19 | 38.19 ▼1.51 | 35.52 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,555 ▲22 | 18.57 ▼4.35 | 632.44 ▲11.87 | 72.15 ▲16.01 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.20 ▲0.02 | 92.33 ▼17.09 | 39.96 ▼12.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Please take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/site-search-analytics-by-measured-search/site-search-analytics-measured-search.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: click tracking, search tracking, analytics, site search, top searches...
site-search-analytics-by-measured-search/site-search-analytics-measured-search.php 92% from 13 tests
Analyzing the main PHP file in "Site Search Analytics by Measured Search" version 1.1
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("site-search-analytics-by-measured-search.php" instead of "site-search-analytics-measured-search.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin5,262 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 955 | 20 | 5,192 |
PHP | 1 | 12 | 20 | 70 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/measuredsearch_logo.png | 3.45KB | 1.89KB | ▼ 45.23% |
img/glyphicons-halflings-white.png | 8.57KB | 9.20KB | 0.00% |
img/glyphicons-halflings.png | 12.50KB | 10.35KB | ▼ 17.19% |