Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.65ms] Passed 4 tests
A check of server-side resources used by Search For Custom Fields
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.06 ▼16.85 |
Dashboard /wp-admin | 3.32 ▲0.02 | 50.15 ▼1.34 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.55 ▼0.37 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 98.00 ▲1.02 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.24 ▼0.05 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_sfcf_fields |
wp_sfcf_options |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
widget_sfcf_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Search For Custom Fields
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.71 ▲0.39 | 1.90 ▲0.32 | 42.48 ▲4.48 |
Dashboard /wp-admin | 2,208 ▲34 | 5.64 ▲0.05 | 95.54 ▲0.25 | 42.48 ▲3.48 |
Posts /wp-admin/edit.php | 2,119 ▲22 | 1.99 ▼0.02 | 39.19 ▲0.38 | 36.64 ▲2.79 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.28 ▲0.07 | 651.31 ▲27.42 | 49.98 ▼3.06 |
Media Library /wp-admin/upload.php | 1,410 ▲10 | 4.15 ▼0.03 | 96.15 ▼7.38 | 44.27 ▲0.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_sfcf_fields
- wp_sfcf_options
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_sfcf_widget
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/search-for-custom-fields/sfcf_widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/search-for-custom-fields/sfcf.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (Plugin administration), #2 (Your visitors can search for posts or pages via your custom fields), #3 (Display your custom fields in your posts and pages.)
search-for-custom-fields/sfcf.php 85% from 13 tests
The main PHP file in "Search For Custom Fields" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("search-for-custom-fields.php" instead of "sfcf.php")
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
Success! There were no dangerous files found in this plugin656 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 48 | 22 | 512 |
PO File | 1 | 43 | 43 | 144 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 9.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.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 | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 14.27KB | 7.78KB | ▼ 45.48% |
screenshot-1.png | 60.75KB | 28.18KB | ▼ 53.62% |
screenshot-2.png | 14.86KB | 6.93KB | ▼ 53.34% |