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.46MB] [CPU: ▼18.10ms] Passed 4 tests
An overview of server-side resources used by WP Nutrition Facts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 41.75 ▼1.07 |
Dashboard /wp-admin | 3.53 ▲0.22 | 47.71 ▲1.73 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 44.01 ▼4.26 |
Add New Post /wp-admin/post-new.php | 3.37 ▼2.52 | 38.93 ▼65.61 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 35.26 ▼1.44 |
All Labels /wp-admin/edit.php?post_type=wp-nutrition-facts | 3.49 | 41.97 |
Add New /wp-admin/post-new.php?post_type=wp-nutrition-facts | 3.50 | 46.30 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Nutrition Facts
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲170 | 13.26 ▼1.09 | 4.64 ▲2.86 | 43.43 ▼9.09 |
Dashboard /wp-admin | 2,287 ▲99 | 5.89 ▲1.02 | 108.77 ▲3.70 | 91.67 ▲49.24 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.07 ▲0.10 | 33.62 ▼5.80 | 34.65 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,544 ▲10 | 22.47 ▼0.66 | 676.31 ▼5.06 | 38.93 ▼12.61 |
Media Library /wp-admin/upload.php | 1,416 ▲25 | 4.31 ▲0.05 | 98.50 ▼19.34 | 78.84 ▲30.20 |
All Labels /wp-admin/edit.php?post_type=wp-nutrition-facts | 1,100 | 2.03 | 34.67 | 29.38 |
Add New /wp-admin/post-new.php?post_type=wp-nutrition-facts | 1,949 | 2.67 | 55.08 | 86.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 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 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 plugin_dir_path() in wp-content/plugins/wp-nutrition-facts/wp-nutrition-facts.php:41
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3 in wp-nutrition-facts/assets to your readme.txt
wp-nutrition-facts/wp-nutrition-facts.php Passed 13 tests
The main file in "WP Nutrition Facts" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Insert a Nutrition Facts Table to pages, posts and custom post type.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,943 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 391 | 263 | 940 |
JavaScript | 5 | 137 | 129 | 510 |
CSS | 3 | 47 | 43 | 303 |
PO File | 1 | 59 | 70 | 151 |
SVG | 1 | 0 | 0 | 20 |
XML | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 177.00 |
▷ Minimum class complexity | 177.00 |
▷ Maximum class complexity | 177.00 |
Average method complexity | 6.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 56.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 18 | 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
6 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/ico-delete.png | 0.70KB | 0.72KB | 0.00% |
images/wpnutrifacts-logo.png | 2.82KB | 1.63KB | ▼ 42.07% |
images/icons/help.png | 3.32KB | 0.46KB | ▼ 86.10% |
images/wpnutrifacts-logo-mini.png | 2.05KB | 0.95KB | ▼ 53.52% |
images/icons/edit.png | 0.48KB | 0.47KB | ▼ 2.44% |