Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼289.08ms] Passed 4 tests
A check of server-side resources used by Advanced Plugin Search
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.24 | 63.95 ▲13.03 |
Dashboard /wp-admin | 3.61 ▲0.20 | 33.41 ▲0.54 |
Posts /wp-admin/edit.php | 3.83 ▲0.19 | 42.90 ▲7.77 |
Add New Post /wp-admin/post-new.php | 7.14 ▲0.17 | 108.63 ▼1,160.62 |
Media Library /wp-admin/upload.php | 3.53 ▲0.23 | 26.35 ▼3.99 |
Server storage [IO: ▲0.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 51 new files
Database: no new tables, 2 new options
New WordPress options |
---|
klick-aps-advanced-search-toggle |
klick-aps-logging |
Browser metrics Passed 4 tests
Advanced Plugin Search: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,941 ▲197 | 16.46 ▲0.39 | 8.82 ▲2.39 | 2.82 ▲0.51 |
Dashboard /wp-admin | 2,917 ▲63 | 6.12 ▼0.06 | 118.80 ▼13.38 | 171.22 ▲12.00 |
Posts /wp-admin/edit.php | 2,721 ▲30 | 3.13 ▼0.11 | 65.97 ▼0.42 | 141.06 ▼1.08 |
Add New Post /wp-admin/post-new.php | 1,654 ▼57 | 21.48 ▲0.77 | 385.56 ▼66.22 | 175.22 ▲18.47 |
Media Library /wp-admin/upload.php | 1,721 ▲23 | 5.63 ▲0.11 | 132.26 ▼19.76 | 214.47 ▲22.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 15× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/advanced-plugin-search/includes/class-klick-aps-logger.php
- > /wp-content/plugins/advanced-plugin-search/includes/class-klick-aps-email-logger.php
- > /wp-content/plugins/advanced-plugin-search/includes/class-klick-aps-notifier.php
- > /wp-content/plugins/advanced-plugin-search/includes/class-klick-aps-dashboard.php
- > /wp-content/plugins/advanced-plugin-search/templates/klick-aps-tabs-header.php
- > /wp-content/plugins/advanced-plugin-search/templates/notices-templates/main-dashboard-notices.php
- > /wp-content/plugins/advanced-plugin-search/includes/class-klick-aps-php-logger.php
- > /wp-content/plugins/advanced-plugin-search/includes/class-klick-aps-abstract-notice.php
- > /wp-content/plugins/advanced-plugin-search/templates/klick-aps-tab-change-log.php
- > /wp-content/plugins/advanced-plugin-search/includes/class-klick-aps-abstract-logger.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant KLICK_APS_PLUGIN_URL - assumed 'KLICK_APS_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/advanced-plugin-search/templates/klick-aps-tab-our-other-plugins.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-plugin-search/templates/klick-aps-tab-our-other-plugins.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/advanced-plugin-search/templates/klick-aps-tab-aps-manage.php:13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Advanced Plugin Search enable/disable Tab), #2 (Download plugin data to local DB), #3 (Do Advance search by selecting various parameters)
advanced-plugin-search/advanced-plugin-search.php 85% from 13 tests
Analyzing the main PHP file in "Advanced Plugin Search" version 0.0.2
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
- Description: Keep the plugin description shorter than 140 characters (currently 185 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,642 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 420 | 626 | 1,426 |
SVG | 10 | 0 | 10 | 475 |
CSS | 6 | 22 | 16 | 468 |
JavaScript | 3 | 45 | 118 | 218 |
Markdown | 1 | 35 | 0 | 55 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 16.54 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 42.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 2 | 15.38% |
▷ Concrete classes | 11 | 84.62% |
▷ Final classes | 0 | 0.00% |
Methods | 92 | |
▷ Static methods | 6 | 6.52% |
▷ Public methods | 91 | 98.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.09% |
Functions | 2 | |
▷ Named functions | 2 | 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 Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.15MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/notices/cs_sample_notice_icon3.png | 30.17KB | 6.04KB | ▼ 79.98% |
images/notices/cs_sample_notice_icon.png | 20.74KB | 1.79KB | ▼ 91.39% |
images/klick-on-it.png | 6.51KB | 4.02KB | ▼ 38.23% |
images/aps-banner.png | 65.02KB | 22.82KB | ▼ 64.91% |
images/small_icon.png | 18.12KB | 0.45KB | ▼ 97.52% |