Benchmarks
Plugin footprint 83% 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.09MB] [CPU: ▼6.16ms] Passed 4 tests
An overview of server-side resources used by Server-Side Google Search
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.89 ▼0.69 |
Dashboard /wp-admin | 3.40 ▲0.09 | 48.19 ▼0.06 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 50.76 ▼1.58 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 85.09 ▼22.29 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.52 ▲4.90 |
Server-Side Google Search /wp-admin/options-general.php?page=ss-google-search | 3.26 | 31.43 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_ssgs_widget |
db_upgraded |
widget_recent-posts |
ssgs_general_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Server-Side Google Search
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.62 ▼0.97 | 1.72 ▼0.05 | 41.02 ▲0.43 |
Dashboard /wp-admin | 2,212 ▲21 | 5.83 ▼0.07 | 99.86 ▼1.69 | 38.84 ▼5.34 |
Posts /wp-admin/edit.php | 2,098 ▲9 | 2.06 ▲0.04 | 40.26 ▼0.23 | 34.81 ▼3.82 |
Add New Post /wp-admin/post-new.php | 1,533 ▼1 | 22.95 ▼0.22 | 722.84 ▲82.72 | 57.20 ▲10.06 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.25 ▲0.06 | 96.98 ▼1.72 | 42.48 ▼0.47 |
Server-Side Google Search /wp-admin/options-general.php?page=ss-google-search | 925 | 2.15 | 22.96 | 29.22 |
Uninstaller [IO: ▲0.00MB] [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
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- widget_recent-posts
- ssgs_general_settings
- widget_ssgs_widget
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=ss-google-search
- > Notice in wp-content/plugins/server-side-google-search/ssgs-admin-page.php+109
Undefined index: default_search_image_url
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
Almost there! Just fix the following items
- 11× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/server-side-google-search/ssgs-google-search.php:27
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/server-side-google-search/tests/SSGSWidgetTestBase.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/server-side-google-search/ssgs-widget.php:2
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/server-side-google-search/tests/bootstrap.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function override_function() in wp-content/plugins/server-side-google-search/tests/define-mock-functions.php:19
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/server-side-google-search/tests/define-mock-functions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function override_function() in wp-content/plugins/server-side-google-search/tests/define-mock-functions.php:19
- > PHP Notice
Undefined variable: mock_function_args in wp-content/plugins/server-side-google-search/tests/define-mock-functions.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function override_function() in wp-content/plugins/server-side-google-search/tests/define-mock-functions.php:19
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/server-side-google-search/tests/bootstrap.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: gcse, server-side google search, google search, google, sce...
server-side-google-search/ssgs-google-search.php 85% from 13 tests
"Server-Side Google Search" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("server-side-google-search.php" instead of "ssgs-google-search.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin2,849 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 659 | 62 | 2,447 |
PO File | 2 | 52 | 52 | 160 |
CSS | 1 | 21 | 1 | 93 |
JSON | 1 | 1 | 0 | 69 |
Bourne Shell | 1 | 15 | 4 | 59 |
XML | 2 | 0 | 0 | 21 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 9.83 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 1.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 1 | 16.67% |
▷ Concrete classes | 5 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 174 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 128 | 73.56% |
▷ Protected methods | 2 | 1.15% |
▷ Private methods | 44 | 25.29% |
Functions | 5 | |
▷ Named functions | 5 | 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
No PNG files were detected