Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.25ms] Passed 4 tests
A check of server-side resources used by Nutrition Facts Vitamins
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.64 ▼0.75 |
Dashboard /wp-admin | 3.33 ▲0.03 | 51.54 ▼0.33 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 50.25 ▼7.44 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.12 ▼16.48 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 42.10 ▲4.63 |
All Labels /wp-admin/edit.php?post_type=nutrition-label | 3.30 | 34.17 |
Add New /wp-admin/post-new.php?post_type=nutrition-label | 3.30 | 48.35 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Nutrition Facts Vitamins: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲151 | 13.44 ▼1.12 | 8.40 ▲6.08 | 44.97 ▼1.27 |
Dashboard /wp-admin | 2,228 ▲48 | 5.67 ▲0.10 | 81.77 ▼9.87 | 75.82 ▲32.40 |
Posts /wp-admin/edit.php | 2,133 ▲30 | 2.03 ▲0.05 | 35.99 ▼5.23 | 34.66 ▼1.70 |
Add New Post /wp-admin/post-new.php | 1,560 ▲34 | 23.21 ▼0.59 | 691.12 ▲15.78 | 55.45 ▼2.74 |
Media Library /wp-admin/upload.php | 1,433 ▲30 | 4.20 ▲0.04 | 99.94 ▼0.76 | 79.63 ▲33.06 |
All Labels /wp-admin/edit.php?post_type=nutrition-label | 1,110 | 1.93 | 32.23 | 29.49 |
Add New /wp-admin/post-new.php?post_type=nutrition-label | 1,718 | 2.51 | 50.66 | 59.19 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/nutrition-facts-vitamins/nutrition-facts-vitamins.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: nutrition, vitamins, nutrition facts label, nutrition facts, nutrition label...
nutrition-facts-vitamins/nutrition-facts-vitamins.php 92% from 13 tests
The entry point to "Nutrition Facts Vitamins" version 3.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 364 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin747 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 102 | 81 | 494 |
PO File | 1 | 42 | 42 | 108 |
CSS | 1 | 14 | 13 | 100 |
JavaScript | 1 | 14 | 19 | 45 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/facts-menu-icon.png | 0.33KB | 0.22KB | ▼ 34.99% |
img/minus.png | 0.67KB | 0.61KB | ▼ 9.09% |
img/plus.png | 1.15KB | 0.45KB | ▼ 60.95% |