Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.77ms] Passed 4 tests
This is a short check of server-side resources used by Quick Search Only One Category Posting
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.94 ▼1.60 |
Dashboard /wp-admin | 3.39 ▲0.04 | 50.23 ▼11.75 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.06 ▲0.71 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 88.93 ▼14.41 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.34 ▲0.70 |
QSOOCP Setting /wp-admin/options-general.php?page=qsoocp-setting-admin | 3.28 | 31.39 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Quick Search Only One Category Posting: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲58 | 13.26 ▼0.95 | 4.46 ▲2.48 | 38.57 ▼5.65 |
Dashboard /wp-admin | 2,210 ▲25 | 4.85 ▼1.01 | 108.62 ▲4.10 | 37.46 ▼3.90 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.07 ▲0.06 | 39.94 ▼2.98 | 36.05 ▼2.36 |
Add New Post /wp-admin/post-new.php | 6,306 ▲4,792 | 25.94 ▲2.48 | 812.63 ▲178.90 | 56.64 ▼0.62 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.32 ▼0.00 | 99.39 ▲0.85 | 43.18 ▲1.21 |
QSOOCP Setting /wp-admin/options-general.php?page=qsoocp-setting-admin | 1,000 | 1.86 | 30.59 | 27.36 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/quick-search-and-only-one-category-posting/inc/settings-page.php:127
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/quick-search-and-only-one-category-posting/quick-search-only-one-category-posting.php:23
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/quick-search-and-only-one-category-posting/inc/walker.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 83% 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 your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Quick Search Only Category Posting with checkbox.), #2 (Quick Search Only Category Posting with radio button.), #3 (Quick Search Only Category Posting with checkbox.), #4 (Quick Search Only Category Posting with radio button.), #5 (Settings Page.)
quick-search-and-only-one-category-posting/quick-search-only-one-category-posting.php 69% from 13 tests
"Quick Search Only One Category Posting" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "4.4")
- Main file name: The principal plugin file should be the same as the plugin slug ("quick-search-and-only-one-category-posting.php" instead of "quick-search-only-one-category-posting.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: Please don't use more than 140 characters for the plugin description (currently 352 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
There were no executable files found in this plugin439 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 59 | 61 | 323 |
PO File | 1 | 16 | 16 | 56 |
JavaScript | 2 | 10 | 6 | 45 |
CSS | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 6.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 2 | 18.18% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
5 PNG files occupy 0.17MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 20.41KB | 6.09KB | ▼ 70.16% |
screenshot-5.png | 64.28KB | 20.53KB | ▼ 68.06% |
screenshot-2.png | 34.13KB | 7.96KB | ▼ 76.67% |
screenshot-4.png | 21.42KB | 6.15KB | ▼ 71.27% |
screenshot-1.png | 33.59KB | 8.51KB | ▼ 74.67% |