Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼2.31ms] Passed 4 tests
This is a short check of server-side resources used by AnySearch
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 137.62 ▲93.46 |
Dashboard /wp-admin | 3.68 ▲0.37 | 54.83 ▲4.86 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 51.90 ▼1.65 |
Add New Post /wp-admin/post-new.php | 6.19 ▲0.31 | 90.52 ▼12.05 |
Media Library /wp-admin/upload.php | 3.54 ▲0.31 | 38.20 ▼0.41 |
Server storage [IO: ▲1.25MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 96 new files
Database: no new tables, 9 new options
New WordPress options |
---|
anysearch_ssl_disabled |
theysaidso_admin_options |
anysearch_sync_status |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
anysearch_sync_settings |
Browser metrics Passed 4 tests
Checking browser requirements for AnySearch
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲14 | 14.21 ▼0.14 | 1.87 ▼0.10 | 42.89 ▼5.23 |
Dashboard /wp-admin | 2,214 ▲34 | 5.59 ▼0.07 | 93.01 ▼1.45 | 43.18 ▲0.08 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.00 ▼0.02 | 34.17 ▼4.15 | 33.73 ▼6.56 |
Add New Post /wp-admin/post-new.php | 1,538 ▲10 | 21.97 ▼1.20 | 634.36 ▼32.23 | 55.18 ▲3.84 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.20 ▲0.06 | 96.55 ▼19.65 | 42.66 ▼3.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/anysearch/anysearch.php
- 46× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Bukashk0zzz\\YmlGenerator\\Model\\Offer\\AbstractOffer' not found in wp-content/plugins/anysearch/vendor/bukashk0zzz/yml-generator/src/Model/Offer/OfferEventTicket.php:17
- > PHP Fatal error
Uncaught Error: Class 'Anysearch' not found in wp-content/plugins/anysearch/views/config.php:4
- > PHP Fatal error
Uncaught Error: Class 'Bukashk0zzz\\YmlGenerator\\Tests\\AbstractGeneratorTest' not found in wp-content/plugins/anysearch/vendor/bukashk0zzz/yml-generator/tests/OfferTourGeneratorTest.php:19
- > PHP Fatal error
Uncaught Error: Class 'Bukashk0zzz\\YmlGenerator\\Tests\\AbstractGeneratorTest' not found in wp-content/plugins/anysearch/vendor/bukashk0zzz/yml-generator/tests/OfferEventTicketGeneratorTest.php:19
- > PHP Notice
Undefined variable: type in wp-content/plugins/anysearch/views/notice.php on line 55
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/anysearch/vendor/bukashk0zzz/yml-generator/tests/AbstractGeneratorTest.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Bukashk0zzz\\YmlGenerator\\Model\\Offer\\OfferInterface' not found in wp-content/plugins/anysearch/vendor/bukashk0zzz/yml-generator/src/Model/Offer/AbstractOffer.php:19
- > PHP Fatal error
Uncaught Error: Class 'Anysearch' not found in wp-content/plugins/anysearch/views/expired.php:4
- > PHP Fatal error
Uncaught Error: Class 'Bukashk0zzz\\YmlGenerator\\Tests\\AbstractGeneratorTest' not found in wp-content/plugins/anysearch/vendor/bukashk0zzz/yml-generator/tests/OfferBookGeneratorTest.php:19
- > PHP Warning
include_once(ANYSEARCH__PLUGIN_DIRclass.background-task-init.php): failed to open stream: No such file or directory in wp-content/plugins/anysearch/class.anysearch-yml.php on line 13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: woocommerce, search
anysearch/anysearch.php 92% from 13 tests
The primary PHP file in "AnySearch" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 247 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin6,602 lines of code in 83 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 60 | 1,113 | 2,517 | 4,092 |
DTD | 9 | 113 | 0 | 1,514 |
CSS | 1 | 61 | 3 | 340 |
Markdown | 2 | 74 | 0 | 200 |
JSON | 4 | 0 | 0 | 164 |
PO File | 1 | 48 | 48 | 150 |
JavaScript | 2 | 14 | 18 | 72 |
XML | 2 | 8 | 0 | 41 |
YAML | 2 | 8 | 0 | 29 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 7.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 57.00 |
Average method complexity | 1.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 2 | |
Traits | 2 | |
Classes | 40 | |
▷ Abstract classes | 5 | 12.50% |
▷ Concrete classes | 35 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 413 | |
▷ Static methods | 56 | 13.56% |
▷ Public methods | 332 | 80.39% |
▷ Protected methods | 57 | 13.80% |
▷ Private methods | 24 | 5.81% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 10 | |
▷ Global constants | 5 | 50.00% |
▷ Class constants | 5 | 50.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_inc/img/logo-full-2x.png | 30.06KB | 8.50KB | ▼ 71.73% |