Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲4.09MB] [CPU: ▲29.27ms] 75% from 4 tests
Server-side resources used by ElasticPress
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 570.78ms on /wp-admin/admin.php?page=elasticpress-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 7.53 ▲4.06 | 72.93 ▲30.85 |
Dashboard /wp-admin | 7.44 ▲4.14 | 82.57 ▲33.98 |
Posts /wp-admin/edit.php | 7.50 ▲4.14 | 77.78 ▲28.66 |
Add New Post /wp-admin/post-new.php | 9.94 ▲4.04 | 117.08 ▲23.57 |
Media Library /wp-admin/upload.php | 7.38 ▲4.15 | 73.84 ▲37.60 |
Synonyms /wp-admin/admin.php?page=elasticpress-synonyms | 7.43 | 70.09 |
Search Fields & Weighting /wp-admin/admin.php?page=elasticpress-weighting | 7.35 | 62.01 |
Sync /wp-admin/admin.php?page=elasticpress-sync | 7.35 | 63.75 |
Custom Results /wp-admin/edit.php?post_type=ep-pointer | 7.42 | 67.62 |
Features /wp-admin/admin.php?page=elasticpress | 7.35 | 65.77 |
Index Health /wp-admin/admin.php?page=elasticpress-health | 7.35 | 60.97 |
Status Report /wp-admin/admin.php?page=elasticpress-status-report | 7.35 | 62.77 |
Settings /wp-admin/admin.php?page=elasticpress-settings | 7.82 | 570.78 |
Server storage [IO: ▲2.70MB] [DB: ▲0.05MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 511 new files
Database: no new tables, 12 new options
New WordPress options |
---|
db_upgraded |
ep_feature_settings |
ep_version |
can_compress_scripts |
widget_theysaidso_widget |
widget_ep-related-posts |
widget_ep-facet |
theysaidso_admin_options |
ep_feature_requirement_statuses |
ep_feature_settings_draft |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ElasticPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,885 ▲124 | 14.58 ▲0.23 | 1.74 ▼0.05 | 39.72 ▼4.10 |
Dashboard /wp-admin | 2,283 ▲106 | 5.53 ▼0.15 | 89.57 ▼3.11 | 41.69 ▲3.04 |
Posts /wp-admin/edit.php | 2,194 ▲91 | 2.07 ▲0.13 | 38.08 ▼3.68 | 34.68 ▼3.22 |
Add New Post /wp-admin/post-new.php | 1,581 ▲55 | 22.51 ▼0.45 | 670.58 ▼17.67 | 41.19 ▼12.92 |
Media Library /wp-admin/upload.php | 1,497 ▲97 | 4.33 ▲0.21 | 98.52 ▼9.95 | 41.62 ▼3.01 |
Synonyms /wp-admin/admin.php?page=elasticpress-synonyms | 1,405 | 7.72 | 211.93 | 81.10 |
Search Fields & Weighting /wp-admin/admin.php?page=elasticpress-weighting | 924 | 1.90 | 33.58 | 25.80 |
Sync /wp-admin/admin.php?page=elasticpress-sync | 1,004 | 1.89 | 28.20 | 39.63 |
Custom Results /wp-admin/edit.php?post_type=ep-pointer | 1,158 | 2.02 | 35.04 | 32.45 |
Features /wp-admin/admin.php?page=elasticpress | 1,011 | 1.87 | 26.11 | 37.29 |
Index Health /wp-admin/admin.php?page=elasticpress-health | 1,007 | 1.89 | 26.71 | 35.46 |
Status Report /wp-admin/admin.php?page=elasticpress-status-report | 1,007 | 1.88 | 25.98 | 35.53 |
Settings /wp-admin/admin.php?page=elasticpress-settings | 1,407 | 1.73 | 27.61 | 46.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.05MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- db_upgraded
- widget_ep-related-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_ep-facet
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 105× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ElasticPress\\Vendor_Prefixed\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/elasticpress/vendor-prefixed/composer/installers/src/Composer/Installers/PuppetInstaller.php:11
- > PHP Fatal error
Uncaught Error: Class 'ElasticPress\\Vendor_Prefixed\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/elasticpress/vendor-prefixed/composer/installers/src/Composer/Installers/ClanCatsFrameworkInstaller.php:11
- > PHP Fatal error
Uncaught Error: Class 'ElasticPress\\Vendor_Prefixed\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/elasticpress/vendor-prefixed/composer/installers/src/Composer/Installers/KnownInstaller.php:11
- > PHP Fatal error
Uncaught Error: Class 'ElasticPress\\Vendor_Prefixed\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/elasticpress/vendor-prefixed/composer/installers/src/Composer/Installers/BitrixInstaller.php:32
- > PHP Fatal error
Uncaught Error: Class 'ElasticPress\\Vendor_Prefixed\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/elasticpress/vendor-prefixed/composer/installers/src/Composer/Installers/MayaInstaller.php:11
- > PHP Fatal error
Uncaught Error: Class 'ElasticPress\\Vendor_Prefixed\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/elasticpress/vendor-prefixed/composer/installers/src/Composer/Installers/Concrete5Installer.php:11
- > PHP Fatal error
Uncaught Error: Class 'ElasticPress\\Vendor_Prefixed\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/elasticpress/vendor-prefixed/composer/installers/src/Composer/Installers/OxidInstaller.php:13
- > PHP Fatal error
Uncaught Error: Class 'ElasticPress\\Vendor_Prefixed\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/elasticpress/vendor-prefixed/composer/installers/src/Composer/Installers/SilverStripeInstaller.php:13
- > PHP Fatal error
Uncaught Error: Class 'ElasticPress\\Vendor_Prefixed\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/elasticpress/vendor-prefixed/composer/installers/src/Composer/Installers/PhiftyInstaller.php:11
- > PHP Fatal error
Uncaught Error: Class 'ElasticPress\\Vendor_Prefixed\\Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/elasticpress/vendor-prefixed/composer/installers/src/Composer/Installers/RadPHPInstaller.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (14 tag instead of maximum 10)
elasticpress/elasticpress.php Passed 13 tests
The main PHP file in "ElasticPress" ver. 5.0.0 adds more information about the plugin and also serves as the entry point for this plugin
58 characters long description:
A fast and flexible search and query engine for WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected35,137 lines of code in 504 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 259 | 6,219 | 16,786 | 24,991 |
JavaScript | 173 | 1,333 | 3,771 | 7,603 |
CSS | 61 | 445 | 27 | 2,163 |
JSON | 7 | 0 | 0 | 350 |
SVG | 4 | 0 | 0 | 30 |
PHP code Passed 2 tests
An overview 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 | 15.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 251.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 68.00 |
Code structure | ||
---|---|---|
Namespaces | 32 | |
Interfaces | 3 | |
Traits | 1 | |
Classes | 197 | |
▷ Abstract classes | 10 | 5.08% |
▷ Concrete classes | 187 | 94.92% |
▷ Final classes | 1 | 0.53% |
Methods | 1,201 | |
▷ Static methods | 24 | 2.00% |
▷ Public methods | 945 | 78.68% |
▷ Protected methods | 236 | 19.65% |
▷ Private methods | 20 | 1.67% |
Functions | 105 | |
▷ Named functions | 64 | 60.95% |
▷ Anonymous functions | 41 | 39.05% |
Constants | 21 | |
▷ Global constants | 11 | 52.38% |
▷ Class constants | 10 | 47.62% |
▷ Public constants | 10 | 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
3 PNG files occupy 0.30MB with 0.14MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/features-screenshot.png | 86.04KB | 27.39KB | ▼ 68.16% |
images/setup-screenshot.png | 220.89KB | 93.67KB | ▼ 57.60% |
images/sync-in-progress.png | 1.39KB | 1.21KB | ▼ 12.78% |