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.00MB] [CPU: ▼12.26ms] Passed 4 tests
A check of server-side resources used by Wordpress File Search
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.13 ▼4.07 |
Dashboard /wp-admin | 3.31 ▼0.03 | 49.86 ▼12.72 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.91 ▼4.27 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 83.74 ▼27.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 32.74 ▼1.13 |
Server storage [IO: ▲0.35MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Wordpress File Search: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲69 | 13.25 ▼1.31 | 1.74 ▲0.07 | 45.70 ▲3.48 |
Dashboard /wp-admin | 2,221 ▲30 | 4.94 ▼0.92 | 96.82 ▼8.04 | 62.27 ▲19.12 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 1.98 ▼0.07 | 37.22 ▲0.48 | 34.71 ▼2.01 |
Add New Post /wp-admin/post-new.php | 1,527 ▲8 | 23.26 ▲0.11 | 731.30 ▲87.47 | 52.64 ▼12.08 |
Media Library /wp-admin/upload.php | 1,403 ▲12 | 4.19 ▲0.06 | 98.02 ▼8.28 | 70.40 ▲27.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
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 esc_html__() in wp-content/plugins/wpfilesearch/wpFileSearch.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
wpfilesearch/wpFileSearch.php 77% from 13 tests
The primary PHP file in "Wordpress File Search" version 1.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpfilesearch.php" instead of "wpFileSearch.php")
- Text Domain: The text domain should only use lowercase characters and dashes
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
No dangerous file extensions were detected250 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 14 | 11 | 134 |
JavaScript | 1 | 7 | 0 | 75 |
HTML | 1 | 0 | 0 | 21 |
CSS | 1 | 0 | 0 | 10 |
SVG | 2 | 0 | 0 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 12 | |
▷ Named functions | 12 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 PNG files occupy 0.32MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 119.26KB | 60.89KB | ▼ 48.94% |
assets/icon-256x256.png | 26.52KB | 30.63KB | 0.00% |
assets/icon-grey-16x16.png | 0.28KB | 0.50KB | 0.00% |
assets/screenshot-1.png | 48.30KB | 26.30KB | ▼ 45.56% |
assets/screenshot-3.png | 59.63KB | 35.82KB | ▼ 39.93% |