Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.89ms] Passed 4 tests
Analyzing server-side resources used by Somewhere search box
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.14 ▼2.21 |
Dashboard /wp-admin | 3.37 ▲0.02 | 45.55 ▼14.31 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 46.87 ▼5.30 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 90.51 ▲2.86 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 35.76 ▲2.27 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
somewhere-search-box-db-version |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Somewhere search box
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲152 | 13.64 ▼0.67 | 4.39 ▲2.19 | 37.59 ▼5.29 |
Dashboard /wp-admin | 2,304 ▲125 | 5.88 ▲0.07 | 97.29 ▼8.38 | 38.09 ▼1.88 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.03 ▼0.00 | 39.71 ▼2.39 | 35.02 ▼2.05 |
Add New Post /wp-admin/post-new.php | 6,284 ▲4,762 | 26.30 ▲3.21 | 858.15 ▲254.37 | 62.21 ▲8.06 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.30 ▲0.11 | 98.50 ▼6.29 | 44.41 ▲4.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- somewhere-search-box-db-version
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/somewhere-search-box/somewhere-search-box.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
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
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Search post widget in edit page.), #2 (Previous and next post edit button in edit page.), #3 (Replicate link in posts link page.)
somewhere-search-box/somewhere-search-box.php Passed 13 tests
"Somewhere search box" version 1.4.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
Search box widget add to the admin post editor.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected270 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 7 | 103 | 236 |
PO File | 1 | 9 | 11 | 34 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.73 |
Average class complexity | 58.00 |
▷ Minimum class complexity | 58.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 5.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 25.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 7.05KB | 3.35KB | ▼ 52.55% |
screenshot-1.png | 3.50KB | 1.67KB | ▼ 52.37% |
screenshot-2.png | 10.38KB | 4.30KB | ▼ 58.52% |