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.56MB] [CPU: ▼2.25ms] Passed 4 tests
A check of server-side resources used by String locator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.06 ▲0.59 | 39.92 ▼0.55 |
Dashboard /wp-admin | 3.89 ▲0.59 | 49.99 ▼2.29 |
Posts /wp-admin/edit.php | 3.94 ▲0.59 | 49.56 ▼3.60 |
Add New Post /wp-admin/post-new.php | 6.42 ▲0.54 | 86.82 ▼2.57 |
Media Library /wp-admin/upload.php | 3.75 ▲0.53 | 38.31 ▼0.16 |
String Locator /wp-admin/tools.php?page=string-locator | 3.78 | 34.56 |
Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for String locator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▲0.12 | 1.74 ▼0.10 | 40.35 ▼5.73 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▲0.03 | 87.50 ▼7.62 | 36.68 ▼2.19 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.00 | 35.98 ▼3.19 | 32.36 ▼2.86 |
Add New Post /wp-admin/post-new.php | 1,530 ▲4 | 23.04 ▲0.02 | 610.15 ▼60.94 | 56.02 ▲1.47 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.25 ▲0.05 | 99.06 ▼7.74 | 41.75 ▼7.15 |
String Locator /wp-admin/tools.php?page=string-locator | 1,114 | 1.93 | 34.66 | 23.23 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function StringLocator\\Extensions\\SQL\\Tests\\add_action() in wp-content/plugins/string-locator/includes/Extension/SQL/Tests/class-serialized-data.php:31
- > PHP Fatal error
Uncaught Error: Class 'StringLocator\\Base\\Search' not found in wp-content/plugins/string-locator/includes/Extension/SQL/class-search.php:11
- > PHP Fatal error
Uncaught Error: Class 'StringLocator\\Base\\REST' not found in wp-content/plugins/string-locator/includes/REST/class-clean.php:7
- > PHP Fatal error
Uncaught Error: Class 'StringLocator\\Base\\REST' not found in wp-content/plugins/string-locator/includes/REST/class-save.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function StringLocator\\Extension\\SQL\\add_filter() in wp-content/plugins/string-locator/includes/Extension/SQL/class-save.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function StringLocator\\Extension\\SearchReplace\\add_action() in wp-content/plugins/string-locator/includes/Extension/SearchReplace/class-replace.php:17
- > PHP Fatal error
Uncaught Error: Class 'StringLocator\\Base\\Search' not found in wp-content/plugins/string-locator/includes/Extension/SQL/class-search.php:11
- > PHP Fatal error
Uncaught Error: Class 'StringLocator\\Base\\Search' not found in wp-content/plugins/string-locator/includes/class-search.php:5
- > PHP Fatal error
Uncaught Error: Class 'StringLocator\\Base\\REST' not found in wp-content/plugins/string-locator/includes/Extension/SearchReplace/REST/class-replace.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/string-locator/includes/Base/class-rest.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: text, find, highlight, syntax, search
string-locator/string-locator.php Passed 13 tests
"String locator" version 2.6.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
60 characters long description:
Scan through theme and plugin files looking for text strings
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
Everything looks great! No dangerous files found in this plugin3,072 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 36 | 731 | 992 | 3,054 |
SVG | 1 | 0 | 0 | 12 |
JavaScript | 4 | 0 | 0 | 4 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 14.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 9 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 121 | |
▷ Static methods | 13 | 10.74% |
▷ Public methods | 112 | 92.56% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 7.44% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin