83% forms-3rdparty-submission-reformat

Code Review | Forms: 3rd-Party Submission Reformat

WordPress plugin Forms: 3rd-Party Submission Reformat scored83%from 54 tests.

About plugin

  • Plugin page: forms-3rdparty-su...
  • Plugin version: 0.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.3
  • WordPress version: 6.3.1
  • First release: Nov 9, 2017
  • Latest release: Jun 11, 2018
  • Number of updates: 6
  • Update frequency: every 36.7 days
  • Top authors: zaus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /742 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by Forms: 3rd-Party Submission Reformat
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0437.52 ▼3.59
Dashboard /wp-admin3.36 ▲0.0647.78 ▼7.05
Posts /wp-admin/edit.php3.47 ▲0.1245.73 ▼0.81
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.58 ▼5.69
Media Library /wp-admin/upload.php3.28 ▲0.0535.49 ▼0.31
Forms 3rdparty Formatter /wp-admin/options-general.php?page=f3i_ff_settings3.2534.95

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
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Forms: 3rd-Party Submission Reformat
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.20 ▼0.151.62 ▼0.5438.96 ▼12.64
Dashboard /wp-admin2,199 ▲195.63 ▼0.0485.10 ▼4.5135.28 ▼8.25
Posts /wp-admin/edit.php2,107 ▲41.96 ▼0.0138.45 ▼6.2431.93 ▼4.97
Add New Post /wp-admin/post-new.php1,537 ▲923.34 ▲0.21610.23 ▼18.0575.18 ▲10.95
Media Library /wp-admin/upload.php1,407 ▲104.16 ▼0.04101.09 ▲0.4042.68 ▼2.45
Forms 3rdparty Formatter /wp-admin/options-general.php?page=f3i_ff_settings8492.0324.2429.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/forms-3rdparty-submission-reformat/f3i-field-format.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention: Please take inspiration from this readme.txt

forms-3rdparty-submission-reformat/f3i-field-format.php 92% from 13 tests

The main PHP script in "Forms: 3rd-Party Submission Reformat" version 0.2.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("forms-3rdparty-submission-reformat.php" instead of "f3i-field-format.php")

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
No dangerous file extensions were detected239 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP39696214
Markdown117025

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.00
▷ Minimum class complexity5.00
▷ Maximum class complexity13.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods21
▷ Static methods29.52%
▷ Public methods21100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants16
▷ Global constants00.00%
▷ Class constants16100.00%
▷ Public constants16100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin