Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.87ms] Passed 4 tests
Server-side resources used by Frequently Searched Words
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.28 ▲1.12 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.64 ▲3.13 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 45.07 ▲5.20 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.22 ▼16.03 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.70 ▲4.30 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_frequently_searched_words |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Frequently Searched Words
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 14.28 ▲0.07 | 2.15 ▲0.55 | 41.49 ▲5.17 |
Dashboard /wp-admin | 2,214 ▲36 | 5.61 ▼0.05 | 97.67 ▼15.77 | 42.99 ▼1.12 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 1.99 ▼0.03 | 35.43 ▼3.09 | 32.43 ▼1.58 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 23.34 ▲5.07 | 657.59 ▲4.28 | 51.29 ▼27.80 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.19 ▼0.01 | 98.09 ▲2.78 | 45.65 ▲4.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-frequently-searched-words/wp-frequently-searched-words.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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 your attention:
- Screenshots: Please add images for these screenshots: #1 (Save the word you searched in the site search and display it in a favorite place with a short code.), #2 (You can see the number of words searched on the administration menu.)
wp-frequently-searched-words/wp-frequently-searched-words.php Passed 13 tests
The principal PHP file in "Frequently Searched Words" v. 2.1.3 is loaded by WordPress automatically on each request
80 characters long description:
It is possible to register and display frequently searched words in site search.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin361 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 69 | 232 | 298 |
PO File | 1 | 11 | 15 | 35 |
CSS | 1 | 7 | 0 | 28 |
PHP code Passed 2 tests
A short 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.17 |
Average class complexity | 6.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 12.50% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 28.52KB | 9.61KB | ▼ 66.31% |
screenshot-1.png | 31.23KB | 10.87KB | ▼ 65.20% |