Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼149.75ms] Passed 4 tests
A check of server-side resources used by RDP Google Custom Search
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 47.37 ▲23.98 |
Dashboard /wp-admin | 3.15 ▲0.10 | 43.77 ▼7.57 |
Posts /wp-admin/edit.php | 3.27 ▲0.16 | 45.20 ▼0.28 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 88.98 ▼590.12 |
Media Library /wp-admin/upload.php | 3.09 ▲0.09 | 36.64 ▼1.01 |
Add New Google CSE /wp-admin/admin.php?page=rdp-google-custom-search-new | 3.09 | 32.59 |
All Google CSEs /wp-admin/admin.php?page=rdp-google-custom-search | 3.27 | 31.95 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 30 new files
Database: 1 new table, no new options
New tables |
---|
wp_gcsefeeds |
Browser metrics Passed 4 tests
An overview of browser requirements for RDP Google Custom Search
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,864 ▲268 | 16.32 ▲0.73 | 9.50 ▲0.89 | 47.84 ▼4.40 |
Dashboard /wp-admin | 3,025 ▲91 | 5.94 ▲0.06 | 144.34 ▼11.66 | 137.35 ▲16.34 |
Posts /wp-admin/edit.php | 2,789 ▲50 | 2.61 ▼0.07 | 68.12 ▼2.10 | 94.72 ▼1.06 |
Add New Post /wp-admin/post-new.php | 1,733 ▲50 | 18.70 ▼0.09 | 381.39 ▼7.41 | 123.36 ▲3.89 |
Media Library /wp-admin/upload.php | 1,815 ▲5 | 5.06 ▲0.02 | 140.35 ▼24.35 | 137.29 ▲8.80 |
Add New Google CSE /wp-admin/admin.php?page=rdp-google-custom-search-new | 1,110 | 2.09 | 58.54 | 85.37 |
All Google CSEs /wp-admin/admin.php?page=rdp-google-custom-search | 1,310 | 2.10 | 57.27 | 74.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_gcsefeeds
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Almost there! Just fix the following items
- 4× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/rdp-google-custom-search/pl/rdpGCSAdmin.php
- > /wp-content/plugins/rdp-google-custom-search/pl/rdpGCS.php
- > /wp-content/plugins/rdp-google-custom-search/pl/rdpGCSResults.php
- > /wp-content/plugins/rdp-google-custom-search/pl/rdpGCSEList.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant RDP_GCS_CSE_TABLE - assumed 'RDP_GCS_CSE_TABLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/rdp-google-custom-search/pl/rdpGCSE.php on line 60
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/rdp-google-custom-search/pl/rdpGCSE.php:61
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (A multi-CSE search box in the main content area, and another single-CSE search box in the sidebar), #2 (CSE picklist attached to a multi-CSE search box), #3 (Default rendering of search results), #4 (List of Custom Search Engines added to the plugin.), #5 (Button to launch shortcode helper form), #6 (Shortcode helper form), #7 (Plugin active in the admin menu)
rdp-google-custom-search/index.php 92% from 13 tests
The main PHP script in "RDP Google Custom Search" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("rdp-google-custom-search.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected3,888 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 449 | 244 | 2,497 |
PHP | 9 | 291 | 422 | 1,200 |
JavaScript | 4 | 39 | 59 | 191 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 85.00 |
Average method complexity | 2.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 6 | 7.41% |
▷ Public methods | 74 | 91.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 8.64% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
9 PNG files occupy 0.18MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 21.72KB | 12.40KB | ▼ 42.89% |
screenshot-2.png | 11.59KB | 6.44KB | ▼ 44.43% |
screenshot-3.png | 89.42KB | 37.51KB | ▼ 58.05% |
screenshot-6.png | 14.37KB | 7.10KB | ▼ 50.55% |
pl/images/search-button-hover.png | 1.02KB | 1.00KB | ▼ 2.49% |