Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▲4.78ms] Passed 4 tests
An overview of server-side resources used by Fetch
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 40.84 ▼2.82 |
Dashboard /wp-admin | 3.45 ▲0.15 | 48.15 ▼5.19 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 109.18 ▲55.60 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 109.53 ▲18.54 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 43.26 ▲8.57 |
Fetch Products /wp-admin/edit-tags.php?taxonomy=fetch-product&post_type=attachment | 3.46 | 54.97 |
Fetch /wp-admin/options-general.php?page=fetch-settings-submenu | 3.33 | 33.39 |
Server storage [IO: ▲2.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 116 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Fetch: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,986 ▲215 | 13.66 ▼0.99 | 8.43 ▲6.42 | 41.86 ▲3.46 |
Dashboard /wp-admin | 2,239 ▲48 | 5.85 ▲0.94 | 114.15 ▲12.79 | 75.42 ▲33.68 |
Posts /wp-admin/edit.php | 2,122 ▲30 | 2.00 ▲0.00 | 59.81 ▲19.17 | 109.04 ▲67.54 |
Add New Post /wp-admin/post-new.php | 1,580 ▲38 | 21.75 ▲3.67 | 763.50 ▲153.88 | 44.75 ▼6.11 |
Media Library /wp-admin/upload.php | 1,427 ▲45 | 4.20 ▼0.02 | 125.27 ▲29.80 | 88.00 ▲47.56 |
Fetch Products /wp-admin/edit-tags.php?taxonomy=fetch-product&post_type=attachment | 1,292 | 2.13 | 27.37 | 34.45 |
Fetch /wp-admin/options-general.php?page=fetch-settings-submenu | 1,047 | 2.25 | 31.76 | 26.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=fetch-settings-submenu
- > Notice in wp-content/plugins/frenzy/views/settings/account.php+123
Undefined index: reset-token
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
Please fix the following
- 24× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Frenzy\\PluginAPI\\AbstractSubscriber' not found in wp-content/plugins/frenzy/src/Subscriber/PublicScriptAssetSubscriber.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function Frenzy\\plugin_dir_url() in wp-content/plugins/frenzy/frenzy.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/frenzy/views/templates/paypal-message.php:6
- > PHP Fatal error
Uncaught Error: Class 'Frenzy\\PluginAPI\\AbstractSubscriber' not found in wp-content/plugins/frenzy/src/Subscriber/SavePaypalSubscriber.php:17
- > PHP Fatal error
Uncaught Error: Class 'Frenzy\\Helpers\\HelperFunctions' not found in wp-content/plugins/frenzy/views/settings/account.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_transient() in wp-content/plugins/frenzy/views/templates/product-additions-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'Frenzy\\Inc\\FetchTaxonomy' not found in wp-content/plugins/frenzy/src/Inc/FetchTaxonomyFetchProduct.php:9
- > PHP Fatal error
Uncaught Error: Class 'Frenzy\\API\\Indi' not found in wp-content/plugins/frenzy/views/settings/analytics.php:3
- > PHP Fatal error
Uncaught Error: Class 'Frenzy\\PluginAPI\\AbstractSubscriber' not found in wp-content/plugins/frenzy/src/Subscriber/ScriptAssetSubscriber.php:16
- > PHP Fatal error
Uncaught Error: Class 'Frenzy\\PluginAPI\\AbstractSubscriber' not found in wp-content/plugins/frenzy/src/Subscriber/ToolsMenuSubscriber.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
frenzy/frenzy.php Passed 13 tests
The entry point to "Fetch" version 3.6.0 is a PHP file that has certain tags in its header comment area
84 characters long description:
Fetch automatically finds, matches, and tags brand-specific products in your images.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin30,816 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 7 | 2,696 | 7,512 | 11,809 |
JSON | 4 | 0 | 0 | 10,953 |
PHP | 44 | 785 | 1,533 | 4,208 |
CSS | 6 | 260 | 80 | 2,087 |
Sass | 2 | 308 | 6 | 1,707 |
XML | 2 | 10 | 6 | 52 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 14.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 27 | |
▷ Abstract classes | 2 | 7.41% |
▷ Concrete classes | 25 | 92.59% |
▷ Final classes | 0 | 0.00% |
Methods | 236 | |
▷ Static methods | 42 | 17.80% |
▷ Public methods | 175 | 74.15% |
▷ Protected methods | 12 | 5.08% |
▷ Private methods | 49 | 20.76% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
35 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/shopsimilar-off.png | 0.45KB | 0.51KB | 0.00% |
assets/images/savebutton(state1).png | 0.39KB | 0.55KB | 0.00% |
assets/images/buy-button-on.png | 0.49KB | 0.49KB | 0.00% |
assets/images/icon-left.png | 0.21KB | 0.21KB | 0.00% |
assets/images/ItemImage_opaquemask.png | 0.14KB | 0.14KB | 0.00% |