Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.18ms] Passed 4 tests
Server-side resources used by Doofinder
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.88 ▲2.26 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.99 ▲2.10 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 46.50 ▼4.45 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 84.53 ▼8.64 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.16 ▲4.11 |
Doofinder /wp-admin/admin.php?page=doofinder_for_wp | 3.25 | 32.27 |
Index Posts /wp-admin/admin.php?page=index_posts | 3.25 | 31.52 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 75 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Doofinder
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲92 | 13.18 ▼1.21 | 1.72 ▲0.04 | 43.94 ▼0.57 |
Dashboard /wp-admin | 2,233 ▲45 | 4.87 ▼1.01 | 99.73 ▼2.19 | 42.97 ▲0.98 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.05 ▼0.01 | 34.86 ▼5.91 | 35.05 ▼0.75 |
Add New Post /wp-admin/post-new.php | 6,251 ▲4,717 | 19.02 ▼4.22 | 928.21 ▲246.63 | 62.37 ▼1.99 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.19 ▲0.03 | 106.50 ▼1.04 | 47.75 ▲1.96 |
Doofinder /wp-admin/admin.php?page=doofinder_for_wp | 921 | 2.02 | 21.99 | 31.06 |
Index Posts /wp-admin/admin.php?page=index_posts | 791 | 1.71 | 24.94 | 25.17 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 18× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Doofinder\\WP\\Api\\Management\\AggregatesIterator' not found in wp-content/plugins/doofinder/lib/src/Management/TopTermsIterator.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/doofinder/lib/src/Test/Search/ClientTest.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/doofinder/lib/src/Test/Search/ResultsTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Doofinder\\WP\\Api\\Management\\ItemsResultSet' not found in wp-content/plugins/doofinder/lib/src/Management/AggregatesIterator.php:9
- > PHP Fatal error
Uncaught Error: Class 'Doofinder\\WP\\Post_Types' not found in wp-content/plugins/doofinder/views/wizard-step-2.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/doofinder/includes/settings/attributes.php:5
- > PHP Fatal error
Uncaught Error: Class 'Doofinder\\WP\\Multilanguage\\Language_Plugin' not found in wp-content/plugins/doofinder/includes/multilanguage/class-no-language-plugin.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/doofinder/lib/src/Test/Management/TopTermsIteratorTest.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function Doofinder\\WP\\admin_url() in wp-content/plugins/doofinder/views/wizard-step-3.php:9
- > PHP Fatal error
Uncaught Error: Class 'Doofinder\\WP\\Api\\Management\\ItemsResultSet' not found in wp-content/plugins/doofinder/lib/src/Management/ScrollIterator.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7, #8 in doofinder/assets to your readme.txt
doofinder/doofinder.php Passed 13 tests
The principal PHP file in "Doofinder" v. 0.5.4 is loaded by WordPress automatically on each request
53 characters long description:
Integrate Doofinder Search in your WordPress website.
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
Everything looks great! No dangerous files found in this plugin6,894 lines of code in 72 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 64 | 1,667 | 3,296 | 5,766 |
Markdown | 2 | 189 | 0 | 672 |
CSS | 2 | 80 | 1 | 235 |
JavaScript | 1 | 0 | 0 | 166 |
JSON | 1 | 0 | 0 | 37 |
YAML | 1 | 0 | 0 | 10 |
XML | 1 | 0 | 0 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 1 | |
Traits | 4 | |
Classes | 53 | |
▷ Abstract classes | 1 | 1.89% |
▷ Concrete classes | 52 | 98.11% |
▷ Final classes | 0 | 0.00% |
Methods | 433 | |
▷ Static methods | 64 | 14.78% |
▷ Public methods | 310 | 71.59% |
▷ Protected methods | 10 | 2.31% |
▷ Private methods | 113 | 26.10% |
Functions | 54 | |
▷ Named functions | 1 | 1.85% |
▷ Anonymous functions | 53 | 98.15% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.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
PNG images were not found in this plugin