Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲5.21MB] [CPU: ▲31.14ms] 50% from 4 tests
A check of server-side resources used by Yummy Recipes
Please take the time to fix the following items
- RAM: You should keep total memory usage under 10MB (currently 10.45MB on /wp-admin/post-new.php?post_type=yummy_recipe)
- Extra RAM: Try to keep extra memory usage under 5MB (currently 5.21MB on /wp-admin/edit.php?post_type=yummy_recipe)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.78 ▲5.32 | 75.56 ▲32.61 |
Dashboard /wp-admin | 8.80 ▲5.50 | 83.37 ▲29.05 |
Posts /wp-admin/edit.php | 8.81 ▲5.45 | 81.04 ▲29.31 |
Add New Post /wp-admin/post-new.php | 10.45 ▲4.56 | 125.17 ▲33.59 |
Media Library /wp-admin/upload.php | 8.80 ▲5.58 | 75.94 ▲40.63 |
Courses /wp-admin/edit-tags.php?taxonomy=yummy_course&post_type=yummy_recipe | 8.87 | 67.87 |
Cuisines /wp-admin/edit-tags.php?taxonomy=yummy_cuisine&post_type=yummy_recipe | 8.87 | 67.03 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 8.81 | 68.08 |
Collections /wp-admin/edit-tags.php?taxonomy=yummy_collection&post_type=yummy_recipe | 8.87 | 72.58 |
Tags /wp-admin/edit-tags.php?taxonomy=yummy_recipe_tag&post_type=yummy_recipe | 8.87 | 66.26 |
Special Diets /wp-admin/edit-tags.php?taxonomy=yummy_special_diet&post_type=yummy_recipe | 8.87 | 65.30 |
Add New Recipe /wp-admin/post-new.php?post_type=yummy_recipe | 10.45 | 113.47 |
Difficulties /wp-admin/edit-tags.php?taxonomy=yummy_difficulty&post_type=yummy_recipe | 8.87 | 78.49 |
Recipes /wp-admin/edit.php?post_type=yummy_recipe | 8.81 | 68.03 |
Server storage [IO: ▲3.31MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 227 new files
Database: no new tables, 13 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
yummy_options |
db_upgraded |
yummy_default_thumbnail_image_url |
fs_debug_mode |
can_compress_scripts |
fs_active_plugins |
theysaidso_admin_options |
yummy_default_thumbnail_image_id |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Yummy Recipes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲120 | 14.24 ▼0.41 | 1.59 ▼0.19 | 31.01 ▼18.61 |
Dashboard /wp-admin | 2,282 ▲105 | 5.67 ▲0.01 | 92.60 ▼11.99 | 41.60 ▼1.82 |
Posts /wp-admin/edit.php | 2,188 ▲88 | 1.99 ▲0.02 | 36.14 ▲1.17 | 36.53 ▲1.95 |
Add New Post /wp-admin/post-new.php | 6,289 ▲4,763 | 21.43 ▼1.44 | 847.27 ▲170.64 | 70.19 ▲13.75 |
Media Library /wp-admin/upload.php | 1,521 ▲121 | 4.31 ▲0.08 | 99.07 ▼3.64 | 45.27 ▲3.65 |
Courses /wp-admin/edit-tags.php?taxonomy=yummy_course&post_type=yummy_recipe | 1,399 | 2.28 | 30.79 | 31.90 |
Cuisines /wp-admin/edit-tags.php?taxonomy=yummy_cuisine&post_type=yummy_recipe | 1,402 | 2.28 | 26.71 | 34.41 |
Freemius Debug [v.2.4.5] /wp-admin/admin.php?page=freemius | 1,137 | 1.70 | 23.35 | 28.80 |
Collections /wp-admin/edit-tags.php?taxonomy=yummy_collection&post_type=yummy_recipe | 1,402 | 2.29 | 27.86 | 35.36 |
Tags /wp-admin/edit-tags.php?taxonomy=yummy_recipe_tag&post_type=yummy_recipe | 1,374 | 2.29 | 29.26 | 32.69 |
Special Diets /wp-admin/edit-tags.php?taxonomy=yummy_special_diet&post_type=yummy_recipe | 1,402 | 2.28 | 33.26 | 36.73 |
Add New Recipe /wp-admin/post-new.php?post_type=yummy_recipe | 6,578 | 21.48 | 993.58 | 54.95 |
Difficulties /wp-admin/edit-tags.php?taxonomy=yummy_difficulty&post_type=yummy_recipe | 1,396 | 2.29 | 28.35 | 35.08 |
Recipes /wp-admin/edit.php?post_type=yummy_recipe | 1,248 | 1.96 | 34.98 | 33.73 |
Uninstaller [IO: ▲0.49MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/yummy-recipes/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- The uninstall procedure has failed, leaving 13 options in the database
- fs_debug_mode
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- fs_gdpr
- fs_active_plugins
- widget_recent-posts
- widget_recent-comments
- yummy_options
- theysaidso_admin_options
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: food, cooking, microformats, recipe block, recipe...
yummy-recipes/yummy-recipes.php Passed 13 tests
"Yummy Recipes" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
101 characters long description:
Yummy Recipes is a recipe plugin for WordPress. It helps you to share your tasty recipes to everyone.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin35,936 lines of code in 180 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 145 | 8,116 | 17,376 | 33,878 |
JavaScript | 12 | 178 | 109 | 1,052 |
CSS | 14 | 194 | 7 | 997 |
SVG | 9 | 0 | 0 | 9 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 77.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 54 | |
▷ Abstract classes | 2 | 3.70% |
▷ Concrete classes | 52 | 96.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,224 | |
▷ Static methods | 225 | 18.38% |
▷ Public methods | 884 | 72.22% |
▷ Protected methods | 15 | 1.23% |
▷ Private methods | 325 | 26.55% |
Functions | 159 | |
▷ Named functions | 155 | 97.48% |
▷ Anonymous functions | 4 | 2.52% |
Constants | 126 | |
▷ Global constants | 101 | 80.16% |
▷ Class constants | 25 | 19.84% |
▷ Public constants | 25 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/yummy-recipes.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/yummy-pattern.png | 74.64KB | 37.74KB | ▼ 49.44% |