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: ▼1.84MB] [CPU: ▼194.92ms] Passed 4 tests
Analyzing server-side resources used by Search by Tags
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.79 ▼0.93 | 5.04 ▼21.58 |
Dashboard /wp-admin | 1.81 ▼1.24 | 5.93 ▼48.86 |
Posts /wp-admin/edit.php | 1.81 ▼1.30 | 5.98 ▼44.55 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.62 | 5.52 ▼654.34 |
Media Library /wp-admin/upload.php | 1.81 ▼1.19 | 4.73 ▼31.92 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Search by Tags
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,814 ▲218 | 16.32 ▲0.80 | 11.49 ▲1.61 | 47.84 ▼5.18 |
Dashboard /wp-admin | 2,994 ▲60 | 5.92 ▲0.01 | 146.05 ▼8.08 | 113.99 ▼3.89 |
Posts /wp-admin/edit.php | 2,763 ▲24 | 2.71 ▲0.02 | 71.26 ▲6.13 | 92.66 ▼2.02 |
Add New Post /wp-admin/post-new.php | 1,687 ▲106 | 17.54 ▼2.69 | 369.48 ▼42.84 | 117.84 ▼8.00 |
Media Library /wp-admin/upload.php | 1,830 ▲23 | 5.06 ▲0.05 | 153.49 ▼0.72 | 118.62 ▼3.80 |
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
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5663
wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the searchbytag handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/search-by-tags/options_page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/search-by-tags/client_side/SearchByTag-popup-in.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (The Search by Tags plugin, highlight the tags within your posts content.), #2 (The Search by Tags plugin, highlight the tags within your posts content and enables your reader to find information about these tags on:), #3 (You can set the "search by tags" light box to be opened in one of the following ways:), #4 (You can set which one of the following search by tags options will be available for your readers)
search-by-tags/search-by-tags.php 92% from 13 tests
Analyzing the main PHP file in "Search by Tags" version 1.0.0
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected365 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 46 | 33 | 171 |
CSS | 2 | 4 | 7 | 110 |
JavaScript | 1 | 17 | 0 | 84 |
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.35 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 20.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 3.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 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 | 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
13 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
client_side/images/popup-bg.png | 0.95KB | 0.15KB | ▼ 84.10% |
images/options-form-btn.png | 3.86KB | 2.70KB | ▼ 30.05% |
client_side/images/popup-bottom-bg.png | 4.35KB | 3.59KB | ▼ 17.49% |
screenshot-1.png | 55.84KB | 26.45KB | ▼ 52.64% |
client_side/images/google.png | 1.79KB | 1.11KB | ▼ 38.34% |