84% field-to-fork

Code Review | Field to Fork

WordPress plugin Field to Fork scored84%from 54 tests.

About plugin

  • Plugin page: field-to-fork
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Nov 19, 2015
  • Latest release: Nov 25, 2015
  • Number of updates: 6
  • Update frequency: every 1.0 days
  • Top authors: mikeill (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /678 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.58ms] Passed 4 tests

This is a short check of server-side resources used by Field to Fork
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0535.80 ▼3.31
Dashboard /wp-admin3.35 ▲0.0544.80 ▼4.82
Posts /wp-admin/edit.php3.40 ▲0.0447.57 ▲2.20
Add New Post /wp-admin/post-new.php5.93 ▲0.0483.08 ▼13.99
Media Library /wp-admin/upload.php3.27 ▲0.0435.91 ▼0.18
Add New /wp-admin/post-new.php?post_type=produce3.3847.79
Produce /wp-admin/edit.php?post_type=produce3.3134.97

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Field to Fork
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,830 ▲7313.31 ▼1.111.72 ▼0.2940.44 ▼14.50
Dashboard /wp-admin2,236 ▲485.90 ▲0.02103.04 ▼6.9640.78 ▲0.56
Posts /wp-admin/edit.php2,119 ▲301.99 ▼0.1438.86 ▼0.2836.36 ▼0.85
Add New Post /wp-admin/post-new.php1,559 ▲3923.34 ▲0.15671.59 ▼17.1054.96 ▼3.30
Media Library /wp-admin/upload.php1,415 ▲364.26 ▲0.08108.21 ▲4.9545.52 ▼0.88
Add New /wp-admin/post-new.php?post_type=produce2,2807.70174.4170.37
Produce /wp-admin/edit.php?post_type=produce1,0771.9530.7929.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_time() in wp-content/plugins/field-to-fork/lib/season.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/field-to-fork/field-to-fork.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: produce, farm, shop, summer, season...

field-to-fork/field-to-fork.php 85% from 13 tests

The main PHP file in "Field to Fork" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • 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
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin195 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP35632195

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin