Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.14MB] [CPU: ▼139.15ms] Passed 4 tests
This is a short check of server-side resources used by Visual Recipe Index
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.90 ▲0.18 | 42.01 ▲21.53 |
Dashboard /wp-admin | 3.19 ▲0.14 | 47.15 ▲3.03 |
Posts /wp-admin/edit.php | 3.30 ▲0.20 | 45.72 ▲6.78 |
Add New Post /wp-admin/post-new.php | 5.55 ▲0.12 | 88.19 ▼568.24 |
Media Library /wp-admin/upload.php | 3.13 ▲0.13 | 31.44 ▲1.85 |
Visual Recipe Index /wp-admin/options-general.php?page=visual-recipe-index | 3.11 | 29.96 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 1 new option
New WordPress options |
---|
riview |
Browser metrics Passed 4 tests
A check of browser resources used by Visual Recipe Index
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,716 ▲120 | 15.83 ▼0.02 | 8.29 ▲0.28 | 48.16 ▼4.84 |
Dashboard /wp-admin | 2,978 ▲44 | 5.83 ▼0.08 | 140.92 ▲3.51 | 110.12 ▼10.80 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.00 | 68.23 ▲1.24 | 96.52 ▲3.79 |
Add New Post /wp-admin/post-new.php | 1,686 ▲3 | 18.70 ▼0.09 | 368.62 ▼12.38 | 109.71 ▼2.29 |
Media Library /wp-admin/upload.php | 1,738 ▼69 | 4.97 ▼0.06 | 144.50 ▼2.61 | 119.98 ▼4.72 |
Visual Recipe Index /wp-admin/options-general.php?page=visual-recipe-index | 1,271 | 2.38 | 56.42 | 87.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 successfully, leaving 1 option in the database
- riview
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 take a closer look at the following
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/visual-recipe-index/includes/RecipeIndexData.php
- > /wp-content/plugins/visual-recipe-index/includes/RecipeIndexPost.php
- > /wp-content/plugins/visual-recipe-index/includes/RecipeIndexView.php
- > /wp-content/plugins/visual-recipe-index/visual-recipe-index.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/visual-recipe-index/includes/Options.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=visual-recipe-index
- > Network (severe)
wp-content/plugins/visual-recipe-index/includes/Sign-up.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=visual-recipe-index
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31592 "jQuery.Deferred exception: $j(...).fix_radios is not a function" "TypeError: $j(...).fix_radios is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/visual-recipe-index/js/recipe_index_options.js?ver=5.8.1:28:29)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30038)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1:2:30340)" undefined
- > GET request to /wp-admin/options-general.php?page=visual-recipe-index
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=5.8.1 1:31702 Uncaught TypeError: $j(...).fix_radios is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Screenshot #3 (Full screen view of the visual recipe index.) image missing
visual-recipe-index/visual-recipe-index.php Passed 13 tests
The principal PHP file in "Visual Recipe Index" v. 1.2.8 is loaded by WordPress automatically on each request
59 characters long description:
This plugin allows for the easy creation of a recipe index.
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
Success! There were no dangerous files found in this plugin1,200 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 274 | 1,264 | 774 |
CSS | 3 | 43 | 38 | 223 |
JavaScript | 2 | 21 | 5 | 203 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 58.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 208.00 |
Average method complexity | 5.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 65.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 3 | 6.25% |
▷ Public methods | 12 | 25.00% |
▷ Protected methods | 30 | 62.50% |
▷ Private methods | 6 | 12.50% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 52 | |
▷ Global constants | 52 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ie6/borderTopRight.png | 0.45KB | 0.53KB | 0.00% |
css/images/ie6/borderBottomLeft.png | 0.46KB | 0.53KB | 0.00% |
css/images/ie6/borderMiddleLeft.png | 0.14KB | 0.16KB | 0.00% |
css/images/border2.png | 0.17KB | 0.16KB | ▼ 2.35% |
css/images/ie6/borderBottomCenter.png | 0.15KB | 0.18KB | 0.00% |