Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/food-recipes/freemius/require.php+16
require_once(wp-content/plugins/food-recipes/freemius/includes/fs-html-escaping-functions.php): failed to open stream: No such file or directory
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.66ms] Passed 4 tests
Analyzing server-side resources used by Food Recipes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.07 ▼4.80 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.16 ▼6.25 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.35 ▼1.83 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.71 ▼1.74 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.62 ▼0.16 |
Server storage [IO: ▲16.61MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 752 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
fs_active_plugins |
can_compress_scripts |
widget_theysaidso_widget |
fs_debug_mode |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Food Recipes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.69 ▲0.39 | 1.61 ▼0.19 | 39.91 ▼6.20 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▲0.08 | 87.07 ▼11.19 | 41.00 ▼2.36 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.04 | 40.15 ▲2.14 | 37.23 ▼1.55 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.59 ▼0.09 | 628.20 ▼59.77 | 49.10 ▼10.26 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.23 ▲0.12 | 102.73 ▲0.06 | 46.87 ▲1.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_recent-comments
- fs_debug_mode
- theysaidso_admin_options
- widget_theysaidso_widget
- fs_active_plugins
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/food-recipes/resources/views/divi/partials/instruction_step.php
- > /wp-content/plugins/food-recipes/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 166× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/food-recipes/resources/views/divi/servings.php:1
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Service\\Service' not found in wp-content/plugins/food-recipes/vendor/htmlburger/carbon-fields/core/Service/Revisions_Service.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Post_Meta_Datastore' not found in wp-content/plugins/food-recipes/vendor/htmlburger/carbon-fields/core/Datastore/Nav_Menu_Item_Datastore.php:7
- > PHP Notice
Undefined variable: author in wp-content/plugins/food-recipes/resources/views/divi/author.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/food-recipes/vendor/htmlburger/carbon-fields/core/Field/Hidden_Field.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function PHPSTORM_META\\override() in wp-content/plugins/food-recipes/vendor/htmlburger/carbon-fields/.phpstorm.meta.php/ioc.meta.php:10
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/food-recipes/vendor/pimple/pimple/src/Pimple/Tests/PimpleTest.php:34
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Datastore\\Datastore_Holder_Interface' not found in wp-content/plugins/food-recipes/vendor/htmlburger/carbon-fields/core/Container/Container.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/food-recipes/post-types/wpt-food-ingredients.php:52
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Event\\Listener' not found in wp-content/plugins/food-recipes/vendor/htmlburger/carbon-fields/core/Event/PersistentListener.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: divi recipe, divi, food, recipe, food recipe
food-recipes/food-recipes.php Passed 13 tests
The main file in "Food Recipes" v. 2.6.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
53 characters long description:
Easy to use recipe plugin with Divi & SEO integration
Code Analysis 97% from 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
No dangerous file extensions were detected70,056 lines of code in 631 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 329 | 10,682 | 24,728 | 45,795 |
JavaScript | 183 | 7,915 | 12,126 | 17,679 |
PO File | 26 | 816 | 1,017 | 2,194 |
CSS | 30 | 341 | 1,139 | 1,817 |
Sass | 49 | 335 | 0 | 1,749 |
JSON | 5 | 0 | 0 | 525 |
Markdown | 5 | 59 | 0 | 113 |
reStructuredText | 1 | 94 | 135 | 97 |
YAML | 2 | 12 | 1 | 74 |
XML | 1 | 1 | 0 | 13 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 24.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 52 | |
Interfaces | 9 | |
Traits | 0 | |
Classes | 218 | |
▷ Abstract classes | 13 | 5.96% |
▷ Concrete classes | 205 | 94.04% |
▷ Final classes | 3 | 1.46% |
Methods | 2,422 | |
▷ Static methods | 300 | 12.39% |
▷ Public methods | 1,879 | 77.58% |
▷ Protected methods | 189 | 7.80% |
▷ Private methods | 354 | 14.62% |
Functions | 275 | |
▷ Named functions | 121 | 44.00% |
▷ Anonymous functions | 154 | 56.00% |
Constants | 160 | |
▷ Global constants | 105 | 65.62% |
▷ Class constants | 55 | 34.38% |
▷ Public constants | 55 | 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
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 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/food-recipes.png | 9.00KB | 4.28KB | ▼ 52.46% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
images/recipe-equipment.png | 17.37KB | 6.96KB | ▼ 59.94% |
images/open-link-icon.png | 0.25KB | 0.23KB | ▼ 8.59% |