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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.86ms] Passed 4 tests
Analyzing server-side resources used by Theme and Plugin file Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.80 ▼1.47 |
Dashboard /wp-admin | 3.32 ▲0.01 | 51.41 ▼1.55 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.95 ▼2.71 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 86.04 ▼17.71 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 36.73 ▼0.16 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Theme and Plugin file Search
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▲0.08 | 1.65 ▼1.07 | 37.93 ▼9.04 |
Dashboard /wp-admin | 2,198 ▲18 | 5.57 ▼0.11 | 88.59 ▼1.32 | 39.66 ▼6.56 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▼0.04 | 39.34 ▲0.86 | 36.16 ▼1.07 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.71 ▲0.13 | 694.88 ▲27.71 | 62.37 ▲13.91 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.02 | 97.81 ▼12.15 | 41.90 ▼4.74 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
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)
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
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/editor-file-search/classes/class-editor-file-search.php:46
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/editor-file-search/editor-file-search.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: Please describe screenshot #1 in editor-file-search/assets to your readme.txt
editor-file-search/editor-file-search.php Passed 13 tests
This is the main PHP file of "Theme and Plugin file Search" version 1.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
58 characters long description:
Add the search filed in theme & plugin file editor window.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected110 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 17 | 61 | 54 |
JavaScript | 1 | 18 | 25 | 47 |
CSS | 1 | 0 | 0 | 5 |
Markdown | 1 | 3 | 0 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 1 | 25.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
PNG images were not found in this plugin