Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼138.96ms] Passed 4 tests
This is a short check of server-side resources used by WP Google Suggest
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.88 ▲0.17 | 42.35 ▲19.62 |
Dashboard /wp-admin | 3.10 ▲0.04 | 44.06 ▲5.47 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 43.83 ▼0.66 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 88.71 ▼562.56 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 31.80 ▲1.91 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Google Suggest
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,864 ▲268 | 16.97 ▲1.38 | 20.72 ▲10.67 | 52.05 ▼2.99 |
Dashboard /wp-admin | 2,970 ▲39 | 5.95 ▼0.01 | 151.84 ▲12.09 | 107.36 ▼2.68 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.00 | 65.31 ▲3.89 | 88.13 ▼1.25 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 18.88 ▲0.14 | 367.29 ▲0.03 | 106.25 ▼2.76 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▲0.02 | 151.00 ▼3.83 | 115.79 ▼6.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-google-suggest/obenland-wp-plugins.php:97
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: google suggest, google, jquery, search, ajax
wp-google-suggest/wp-google-suggest.php 92% from 13 tests
The entry point to "WP Google Suggest" version 2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Version: Use only periods and digits for the version number (ex. "1.0.3" instead of "2")
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 detected320 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 51 | 219 | 168 |
PO File | 2 | 15 | 40 | 74 |
JavaScript | 2 | 3 | 4 | 39 |
CSS | 2 | 0 | 0 | 25 |
XML | 1 | 4 | 3 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 6.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 75.00% |
▷ Protected methods | 2 | 16.67% |
▷ Private methods | 1 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin