Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.44ms] Passed 4 tests
An overview of server-side resources used by Google CSE
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.01 | 36.09 ▼1.49 |
Dashboard /wp-admin | 3.31 ▲0.01 | 41.66 ▼14.04 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 41.46 ▼1.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 96.64 ▼9.13 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.92 ▼0.96 |
Google CSE /wp-admin/options-general.php?page=google-cse-options | 3.20 | 29.66 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Google CSE: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.34 ▼1.03 | 4.56 ▲2.71 | 45.05 ▲2.94 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼0.00 | 100.77 ▼15.69 | 36.17 ▼12.01 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▼0.02 | 41.92 ▲5.41 | 36.57 ▲4.94 |
Add New Post /wp-admin/post-new.php | 1,526 ▲12 | 23.36 ▲5.91 | 681.22 ▼78.40 | 73.83 ▲8.57 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.20 ▲0.01 | 138.27 ▼32.96 | 79.47 ▲18.05 |
Google CSE /wp-admin/options-general.php?page=google-cse-options | 837 | 2.06 | 27.77 | 30.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/google-cse/google-cse.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/google-cse/admin.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/google-cse/uninstall.php:4
- > 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 97% 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 (Search Results), #2 (Settings)
google-cse/google-cse.php Passed 13 tests
This is the main PHP file of "Google CSE" version 1.0.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
54 characters long description:
Google powered search for your WordPress site or blog.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin247 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 33 | 117 | 247 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.79 |
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 | 9 | |
▷ Named functions | 9 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.25MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 124.54KB | 52.99KB | ▼ 57.46% |
screenshot-2.png | 136.24KB | 57.60KB | ▼ 57.72% |