Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/search-google/search-google.php+84
Function create_function() is deprecated
Server metrics [RAM: ▼1.84MB] [CPU: ▼195.57ms] Passed 4 tests
Analyzing server-side resources used by Search by Google
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼1.04 | 5.22 ▼29.69 |
Dashboard /wp-admin | 1.81 ▼1.24 | 6.09 ▼40.45 |
Posts /wp-admin/edit.php | 1.81 ▼1.29 | 7.23 ▼43.79 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.62 | 5.12 ▼668.34 |
Media Library /wp-admin/upload.php | 1.81 ▼1.19 | 4.90 ▼29.42 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_search_google |
Browser metrics Passed 4 tests
Checking browser requirements for Search by Google
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,812 ▲216 | 16.63 ▲1.05 | 12.81 ▲1.89 | 49.86 ▲5.63 |
Dashboard /wp-admin | 2,973 ▲39 | 5.88 ▼0.25 | 136.13 ▼14.90 | 128.12 ▲18.65 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.69 ▲0.00 | 66.44 ▼4.29 | 91.39 ▼3.40 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.58 ▼0.21 | 380.87 ▼0.01 | 115.45 ▼4.38 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.01 ▼0.02 | 154.43 ▲5.86 | 123.60 ▼6.91 |
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
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/search-google/search-google.php+84
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 1 option
- widget_search_google
Smoke tests 75% 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)
Even though no errors were found, this is by no means an exhaustive test
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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/search-google/search-google.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots require images: #1 ("Search by Google" widget options), #2 ("Search by Google" widget on site), #3 (Google search page after form submit)
search-google/search-google.php Passed 13 tests
"Search by Google" version 1.9's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
28 characters long description:
Google search on site widget
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected124 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 21 | 12 | 77 |
PO File | 1 | 9 | 12 | 32 |
CSS | 1 | 1 | 4 | 14 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 2.83KB | 2.02KB | ▼ 28.47% |
screenshot-3.png | 14.62KB | 9.22KB | ▼ 36.95% |
screenshot-1.png | 6.00KB | 3.70KB | ▼ 38.29% |