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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▲0.84ms] Passed 4 tests
A check of server-side resources used by Advanced Plugin Search
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.69 ▼1.35 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.57 ▲1.74 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 49.18 ▲2.72 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 96.73 ▲0.26 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.86 ▲3.85 |
Server storage [IO: ▲0.42MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 51 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
klick-aps-advanced-search-toggle |
klick-aps-logging |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Plugin Search
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,935 ▲178 | 14.02 ▼0.23 | 5.27 ▲3.22 | 38.22 ▼14.63 |
Dashboard /wp-admin | 2,227 ▲39 | 5.87 ▼0.03 | 103.74 ▲3.01 | 84.26 ▲43.11 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.04 ▲0.04 | 37.19 ▼0.48 | 32.74 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.25 ▼4.86 | 683.33 ▲19.08 | 55.52 ▼1.53 |
Media Library /wp-admin/upload.php | 1,409 ▲18 | 4.23 ▲0.06 | 114.74 ▲20.24 | 42.97 ▼3.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 15× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/advanced-plugin-search/includes/class-klick-aps-options.php
- > /wp-content/plugins/advanced-plugin-search/includes/class-klick-aps-logger.php
- > /wp-content/plugins/advanced-plugin-search/includes/class-klick-aps-abstract-logger.php
- > /wp-content/plugins/advanced-plugin-search/templates/notices-templates/main-dashboard-notices.php
- > /wp-content/plugins/advanced-plugin-search/includes/class-klick-aps-abstract-notice.php
- > /wp-content/plugins/advanced-plugin-search/templates/klick-aps-tabs-header.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/templates/klick-aps-tab-change-log.php
- > /wp-content/plugins/advanced-plugin-search/includes/class-klick-aps-db-operations.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > 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 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-aps-manage.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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #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
"Advanced Plugin Search" version 0.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 185 characters long)
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected2,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
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/aps-banner.png | 65.02KB | 22.82KB | ▼ 64.91% |
images/notices/cs_sample_notice_icon2.png | 9.63KB | 4.69KB | ▼ 51.23% |
images/small_icon.png | 18.12KB | 0.45KB | ▼ 97.52% |
images/notices/cs_sample_notice_icon.png | 20.74KB | 1.79KB | ▼ 91.39% |
images/klick-on-it.png | 6.51KB | 4.02KB | ▼ 38.23% |