89% nutrition-table

Code Review | Nutrition Information Table Facts

WordPress plugin Nutrition Information Table Facts scored 89% from 54 tests.

About plugin

  • Plugin page: nutrition-table
  • Plugin version: 0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.7
  • WordPress version: 6.3.1
  • First release: Jul 19, 2018
  • Latest release: Jul 19, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: gaizkagzgr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,452 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼5.19ms] Passed 4 tests

A check of server-side resources used by Nutrition Information Table Facts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.85 ▼2.50
Dashboard /wp-admin3.36 ▲0.0545.45 ▼4.55
Posts /wp-admin/edit.php3.41 ▲0.0549.25 ▲0.36
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.57 ▼14.06
Media Library /wp-admin/upload.php3.28 ▲0.0536.86 ▲3.99
All tables /wp-admin/edit.php?post_type=nitf-label3.3236.14
Add new /wp-admin/post-new.php?post_type=nitf-label3.3345.60

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Nutrition Information Table Facts
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9713.21 ▼1.001.91 ▲0.2343.55 ▼0.28
Dashboard /wp-admin2,235 ▲505.86 ▲0.99105.58 ▼8.2375.65 ▲30.83
Posts /wp-admin/edit.php2,121 ▲322.02 ▲0.0238.38 ▲1.7034.21 ▲2.65
Add New Post /wp-admin/post-new.php1,546 ▲3223.15 ▲5.67699.53 ▲43.9559.39 ▲3.77
Media Library /wp-admin/upload.php1,411 ▲264.20 ▼0.01100.05 ▼2.6972.55 ▲26.70
All tables /wp-admin/edit.php?post_type=nitf-label1,0921.9430.9930.84
Add new /wp-admin/post-new.php?post_type=nitf-label1,6282.6249.3064.94

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
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
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 90% 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
10 plugin tags: nutricion json, nutrition table, nutrition schema, tabla de nutricion, food...

nutrition-table/nutrition-information-table-facts.php 77% from 13 tests

This is the main PHP file of "Nutrition Information Table Facts" version 0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("nutrition-table.php" instead of "nutrition-information-table-facts.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 168 characters long)

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 plugin381 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16469295
PO File137086

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/img/nutrition-menu-icon.png0.65KB0.58KB▼ 10.99%