Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.29MB] [CPU: ▲1.29ms] Passed 4 tests
A check of server-side resources used by Search in Place
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 45.45 ▲5.83 |
Dashboard /wp-admin | 3.59 ▲0.28 | 48.74 ▲0.73 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 51.72 ▲2.93 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 98.05 ▲0.17 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 35.81 ▲1.33 |
Server storage [IO: ▲0.21MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
installed_search-in-place |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Search in Place
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲158 | 13.47 ▼0.67 | 9.35 ▲7.72 | 43.50 ▲3.12 |
Dashboard /wp-admin | 2,227 ▲53 | 5.51 ▼0.12 | 86.35 ▼8.44 | 39.80 ▼1.23 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 1.95 ▼0.06 | 40.27 ▲0.30 | 36.58 ▲3.01 |
Add New Post /wp-admin/post-new.php | 6,227 ▲4,701 | 26.14 ▲2.82 | 841.59 ▲176.73 | 52.47 ▼10.39 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.18 ▼0.05 | 101.02 ▼1.82 | 41.42 ▼4.22 |
Upgrade /wp-admin/codepeople_search_in_place.php?page=search_in_place_upgrade | 26 | 0.41 | 0.08 | 13.70 |
Search In Place /wp-admin/codepeople_search_in_place.php | 26 | 0.41 | 0.06 | 6.37 |
Online Help /wp-admin/codepeople_search_in_place.php?page=search_in_place_help | 26 | 0.41 | 0.06 | 7.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- installed_search-in-place
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/search-in-place/php/autocomplete.clss.php
- > /wp-content/plugins/search-in-place/php/searchinplace.clss.php
- 4× 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/search-in-place/banner.php:106
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/search-in-place/banner.php:106
- > PHP Fatal error
Uncaught Error: Class 'SiteOrigin_Widget' not found in wp-content/plugins/search-in-place/pagebuilders/siteorigin/siteorigin-cpsp/siteorigin-cpsp.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/search-in-place/pagebuilders/siteorigin/siteorigin-cpsp/tpl/siteorigin-search-in-place.php:10
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/codepeople_search_in_place.php?page=search_in_place_upgrade
- > Network (severe)
wp-admin/codepeople_search_in_place.php?page=search_in_place_upgrade - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/codepeople_search_in_place.php
- > Network (severe)
wp-admin/codepeople_search_in_place.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/codepeople_search_in_place.php?page=search_in_place_help
- > Network (severe)
wp-admin/codepeople_search_in_place.php?page=search_in_place_help - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Screenshots: Please a description for screenshot #2 in search-in-place/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
search-in-place/codepeople_search_in_place.php 85% from 13 tests
Analyzing the main PHP file in "Search in Place" version 1.1.4
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("search-in-place.php" instead of "codepeople_search_in_place.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 344 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,633 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 205 | 101 | 1,442 |
PO File | 5 | 405 | 482 | 1,092 |
JavaScript | 3 | 97 | 25 | 824 |
HTML | 1 | 0 | 0 | 180 |
CSS | 4 | 14 | 2 | 94 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 31.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 4.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 63.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 3 | 6.12% |
▷ Public methods | 41 | 83.67% |
▷ Protected methods | 2 | 4.08% |
▷ Private methods | 6 | 12.24% |
Functions | 4 | |
▷ Named functions | 4 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/arrow.png | 0.22KB | 0.11KB | ▼ 49.34% |
css/close-icon.png | 0.25KB | 0.25KB | 0.00% |