Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/maven-algolia/core/utils.php+26
preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.77ms] Passed 4 tests
This is a short check of server-side resources used by Maven Algolia
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.96 ▼7.80 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.25 ▼4.92 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 53.26 ▼0.61 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.54 ▼16.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.36 ▼1.70 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Maven Algolia
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.63 ▲0.46 | 2.23 ▲0.36 | 51.77 ▲6.83 |
Dashboard /wp-admin | 2,195 ▲15 | 5.56 ▼0.13 | 84.95 ▼11.15 | 38.75 ▼3.81 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.06 ▲0.03 | 39.89 ▲4.09 | 37.43 ▲1.33 |
Add New Post /wp-admin/post-new.php | 1,549 ▲9 | 23.34 ▲5.13 | 647.44 ▲16.37 | 53.48 ▲0.42 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.19 ▼0.02 | 101.30 ▼3.67 | 44.09 ▼3.69 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'MavenAlgolia\\Core\\Registry' not found in wp-content/plugins/maven-algolia/admin/views/settings.php:6
- > 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 issues were found
Optimizations
Plugin configuration 97% 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
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Suggestive Search), #2 (A graphical interface to manage your settings)
maven-algolia/maven-algolia.php Passed 13 tests
Analyzing the main PHP file in "Maven Algolia" version 0.4
57 characters long description:
Fully customise WordPress search implementing algolia API
Code Analysis 5% from 3 tests
File types 0% from 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
It is important to fix the following items
- Do not include executable or dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/maven-algolia/lib/resources/ca-bundle.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 644 | 1,073 | 2,656 |
JavaScript | 3 | 40 | 69 | 570 |
CSS | 2 | 42 | 78 | 457 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 19.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 20 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 238 | |
▷ Static methods | 46 | 19.33% |
▷ Public methods | 233 | 97.90% |
▷ Protected methods | 1 | 0.42% |
▷ Private methods | 4 | 1.68% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 14 | |
▷ Global constants | 2 | 14.29% |
▷ Class constants | 12 | 85.71% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 PNG files occupy 0.42MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 57.00KB | 21.08KB | ▼ 63.01% |
admin/assets/styles/images/ui-bg_flat_55_fbec88_40x100.png | 0.20KB | 0.08KB | ▼ 57.77% |
admin/assets/styles/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png | 5.69KB | 2.08KB | ▼ 63.46% |
admin/assets/images/icon.png | 3.89KB | 0.88KB | ▼ 77.49% |
admin/assets/styles/images/ui-bg_inset-hard_100_fcfdfd_1x100.png | 0.29KB | 0.10KB | ▼ 65.41% |