84% nutrifox

Code Review | Nutrifox WP Connector

WordPress plugin Nutrifox WP Connector scored84%from 54 tests.

About plugin

  • Plugin page: nutrifox
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 6.3.1
  • First release: Nov 11, 2019
  • Latest release: Jan 24, 2022
  • Number of updates: 11
  • Update frequency: every 73.6 days
  • Top authors: danielbachhuber (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,430 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.01MB] [CPU: ▼8.31ms] Passed 4 tests

A check of server-side resources used by Nutrifox WP Connector
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0241.18 ▲1.69
Dashboard /wp-admin3.33 ▼0.0241.78 ▼16.13
Posts /wp-admin/edit.php3.38 ▲0.0244.03 ▼4.72
Add New Post /wp-admin/post-new.php5.91 ▲0.0180.82 ▼13.76
Media Library /wp-admin/upload.php3.25 ▲0.0236.00 ▲1.36

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Nutrifox WP Connector
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.08 ▼0.331.77 ▲0.2143.23 ▲3.74
Dashboard /wp-admin2,195 ▲155.51 ▼0.0982.01 ▼9.6839.66 ▲0.34
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0033.77 ▼8.7937.92 ▲0.25
Add New Post /wp-admin/post-new.php6,364 ▲4,82827.88 ▲9.49849.57 ▲178.6934.89 ▼49.73
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.1092.90 ▼22.3241.40 ▼6.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

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
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nutrifox/nutrifox.php:59

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: blogging, recipes

nutrifox/nutrifox.php 92% from 13 tests

The main file in "Nutrifox WP Connector" v. 0.2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin200 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript497115
PHP162885

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin