Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲6.51MB] [CPU: ▲19.71ms] 50% from 4 tests
Analyzing server-side resources used by Fast Index
Please have a look at the following items
- RAM: The total memory usage must be kept under 10MB (currently 10.54MB on /wp-admin/admin.php?page=freemius)
- Extra RAM: The extra memory usage must be under 5MB (currently 6.51MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 10.43 ▲6.97 | 73.17 ▲34.61 |
Dashboard /wp-admin | 10.54 ▲7.23 | 83.73 ▲33.73 |
Posts /wp-admin/edit.php | 10.54 ▲7.18 | 86.51 ▲36.35 |
Add New Post /wp-admin/post-new.php | 10.54 ▲4.65 | 70.07 ▼23.27 |
Media Library /wp-admin/upload.php | 10.54 ▲7.31 | 66.63 ▲33.76 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 10.54 | 74.02 |
Server storage [IO: ▲5.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 624 new files
Database: no new tables, 10 new options
New WordPress options |
---|
fs_accounts |
widget_recent-comments |
can_compress_scripts |
fs_debug_mode |
widget_recent-posts |
fs_gdpr |
widget_theysaidso_widget |
theysaidso_admin_options |
fs_active_plugins |
db_upgraded |
Browser metrics Passed 4 tests
Fast Index: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲65 | 14.54 ▲0.27 | 1.70 ▼0.11 | 30.21 ▼13.67 |
Dashboard /wp-admin | 2,229 ▲49 | 5.54 ▼0.11 | 99.01 ▲1.41 | 47.02 ▲4.34 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.01 ▲0.06 | 41.24 ▲1.12 | 37.64 ▲0.82 |
Add New Post /wp-admin/post-new.php | 1,548 ▲19 | 22.86 ▼0.46 | 681.74 ▲89.63 | 44.16 ▼8.60 |
Media Library /wp-admin/upload.php | 1,440 ▲43 | 4.23 ▲0.07 | 100.04 ▼3.34 | 43.15 ▼3.25 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 1,089 | 1.67 | 26.98 | 31.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/fast-index/index.php+594
Undefined index: fi_delete
- Zombie WordPress options detected upon uninstall: 10 options
- widget_recent-comments
- widget_theysaidso_widget
- fs_accounts
- theysaidso_admin_options
- fs_active_plugins
- fs_gdpr
- fs_debug_mode
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% 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 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
The following issues need your attention
- 141× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/fast-index/helpers/indexingApi/vendor/psr/log/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Class 'Google\\Exception' not found in wp-content/plugins/fast-index/helpers/indexingApi/src/Task/Exception.php:22
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\Matcher\\Matcher' not found in wp-content/plugins/fast-index/helpers/indexingApi/vendor/myclabs/deep-copy/src/DeepCopy/Matcher/PropertyNameMatcher.php:8
- > PHP Warning
Class 'Google\\AuthHandler\\Guzzle7AuthHandler' not found in wp-content/plugins/fast-index/helpers/indexingApi/src/aliases.php on line 33
- > PHP Fatal error
Uncaught Error: Interface 'DeepCopy\\Filter\\Filter' not found in wp-content/plugins/fast-index/helpers/indexingApi/vendor/myclabs/deep-copy/src/DeepCopy/Filter/KeepFilter.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/fast-index/view/settings.php:93
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/fast-index/helpers/indexingApi/vendor/guzzlehttp/promises/src/RejectedPromise.php:11
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/fast-index/helpers/indexingApi/vendor/guzzlehttp/promises/src/AggregateException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Google\\Auth\\FetchAuthTokenInterface' not found in wp-content/plugins/fast-index/helpers/indexingApi/vendor/google/auth/src/FetchAuthTokenCache.php:26
- > PHP Fatal error
Uncaught Error: Class 'Google\\Auth\\CredentialsLoader' not found in wp-content/plugins/fast-index/helpers/indexingApi/vendor/google/auth/src/Credentials/GCECredentials.php:59
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4 in fast-index/assets to your readme.txt
fast-index/index.php 92% from 13 tests
This is the main PHP file of "Fast Index" version 1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("fast-index.php" instead of "index.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected84,845 lines of code in 539 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 449 | 13,121 | 32,995 | 77,633 |
Markdown | 36 | 1,901 | 0 | 5,427 |
JSON | 24 | 0 | 0 | 1,060 |
JavaScript | 4 | 46 | 59 | 216 |
YAML | 7 | 45 | 4 | 180 |
PO File | 1 | 55 | 55 | 177 |
CSS | 14 | 18 | 0 | 72 |
HTML | 1 | 5 | 0 | 48 |
XML | 1 | 0 | 0 | 19 |
Dockerfile | 1 | 8 | 0 | 10 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 0% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,089)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 22.55 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 3.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 56 | |
Interfaces | 39 | |
Traits | 40 | |
Classes | 271 | |
▷ Abstract classes | 19 | 7.01% |
▷ Concrete classes | 252 | 92.99% |
▷ Final classes | 36 | 14.29% |
Methods | 2,963 | |
▷ Static methods | 669 | 22.58% |
▷ Public methods | 2,268 | 76.54% |
▷ Protected methods | 73 | 2.46% |
▷ Private methods | 622 | 20.99% |
Functions | 393 | |
▷ Named functions | 282 | 71.76% |
▷ Anonymous functions | 111 | 28.24% |
Constants | 438 | |
▷ Global constants | 188 | 42.92% |
▷ Class constants | 250 | 57.08% |
▷ Public constants | 241 | 96.40% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius-sdk/assets/img/fast-index.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius-sdk/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
screenshot-2.png | 41.76KB | 21.27KB | ▼ 49.07% |
screenshot-3.png | 38.24KB | 20.06KB | ▼ 47.55% |
freemius-sdk/assets/img/fast-index-google-indexing.png | 9.16KB | 5.26KB | ▼ 42.58% |