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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.78ms] Passed 4 tests
This is a short check of server-side resources used by Restricted Search
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 34.56 ▼4.53 |
Dashboard /wp-admin | 3.33 ▼0.02 | 43.92 ▼12.22 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 42.99 ▼5.37 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.45 ▼9.00 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.06 ▲0.82 |
Server storage [IO: ▲0.31MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Restricted Search
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.35 ▼0.21 | 1.72 ▲0.29 | 41.75 ▼2.28 |
Dashboard /wp-admin | 2,210 ▲30 | 5.57 ▼0.11 | 81.34 ▼8.97 | 66.38 ▲20.44 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 1.99 ▼0.05 | 35.16 ▲0.34 | 34.94 ▼6.62 |
Add New Post /wp-admin/post-new.php | 1,693 ▲165 | 21.94 ▼1.25 | 690.29 ▲42.83 | 52.29 ▼15.92 |
Media Library /wp-admin/upload.php | 1,418 ▲24 | 4.22 ▼0.16 | 99.91 ▲3.49 | 71.90 ▲30.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add a description for screenshot #3 in restricted-search/assets to your readme.txt
restricted-search/restricted_search.php 92% from 13 tests
"Restricted Search" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("restricted-search.php" instead of "restricted_search.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected3,490 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 365 | 216 | 2,193 |
PHP | 11 | 289 | 244 | 1,048 |
JavaScript | 4 | 22 | 2 | 174 |
PO File | 1 | 30 | 31 | 75 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 32.25 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 173.00 |
Average method complexity | 5.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 61 | |
▷ Static methods | 1 | 1.64% |
▷ Public methods | 61 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.12MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/vtdlogo-2x.png | 3.56KB | 2.06KB | ▼ 42.10% |
assets/images/vtdesigns.png | 1.50KB | 0.71KB | ▼ 52.99% |
lib/jquery/upload/images/Placeholderpdf.png | 14.58KB | 5.45KB | ▼ 62.63% |
(invalid) assets/images/question_mark.png | 0.86KB | 0.00KB | ▼ 100.00% |
assets/images/fpd/grid.png | 2.69KB | 0.13KB | ▼ 95.17% |