Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.85ms] Passed 4 tests
A check of server-side resources used by Search with Google
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.15 ▼2.90 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.25 ▼2.16 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.33 ▲0.35 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 90.66 ▼2.67 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.41 ▲2.37 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Search with Google: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.12 | 1.65 ▼0.06 | 39.00 ▼1.98 |
Dashboard /wp-admin | 2,206 ▲17 | 4.95 ▼0.15 | 108.15 ▲1.68 | 41.42 ▼0.99 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.03 | 40.18 ▲1.06 | 35.73 ▼0.78 |
Add New Post /wp-admin/post-new.php | 1,542 ▲17 | 18.45 ▼4.66 | 594.25 ▼73.31 | 54.54 ▼1.67 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▼0.02 | 94.96 ▼0.56 | 39.36 ▼3.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Trait 'RT\\Search_With_Google\\Inc\\Traits\\Singleton' not found in wp-content/plugins/search-with-google/inc/classes/class-plugin.php on line 15
- > PHP Fatal error
Trait 'RT\\Search_With_Google\\Inc\\Traits\\Singleton' not found in wp-content/plugins/search-with-google/inc/classes/class-search-engine.php on line 17
- > PHP Fatal error
Trait 'RT\\Search_With_Google\\Inc\\Traits\\Singleton' not found in wp-content/plugins/search-with-google/inc/classes/class-search.php on line 18
- > PHP Fatal error
Trait 'RT\\Search_With_Google\\Inc\\Traits\\Singleton' not found in wp-content/plugins/search-with-google/inc/classes/class-settings.php on line 15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
search-with-google/search-with-google.php Passed 13 tests
The primary PHP file in "Search with Google" version 1.0 is used by WordPress to initiate all plugin functionality
67 characters long description:
Replace WordPress default search with Google Custom Search results.
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
Everything looks great! No dangerous files found in this plugin296 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 116 | 263 | 296 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 6.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 13 | 59.09% |
▷ Protected methods | 9 | 40.91% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin