84% forms-3rdparty-files

Code Review | Forms: 3rd-Party File Attachments

WordPress plugin Forms: 3rd-Party File Attachments scored 84% from 54 tests.

About plugin

  • Plugin page: forms-3rdparty-files
  • Plugin version: 0.5.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Nov 3, 2015
  • Latest release: Oct 10, 2018
  • Number of updates: 17
  • Update frequency: every 63.4 days
  • Top authors: zaus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,774 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼4.54ms] Passed 4 tests

Analyzing server-side resources used by Forms: 3rd-Party File Attachments
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.28 ▲2.93
Dashboard /wp-admin3.31 ▲0.0143.57 ▼6.57
Posts /wp-admin/edit.php3.36 ▲0.0143.18 ▼2.94
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.08 ▼0.06
Media Library /wp-admin/upload.php3.23 ▲0.0134.50 ▼8.60

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Forms: 3rd-Party File Attachments
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲9013.23 ▼1.152.03 ▲0.3042.71 ▲1.98
Dashboard /wp-admin2,206 ▲154.87 ▼0.0099.98 ▼2.1640.31 ▼3.64
Posts /wp-admin/edit.php2,089 ▲32.02 ▲0.0136.14 ▼0.2630.93 ▼1.15
Add New Post /wp-admin/post-new.php1,542 ▲1718.63 ▼4.57641.26 ▼19.6956.98 ▲8.73
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0593.72 ▼27.2943.35 ▼8.38

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/forms-3rdparty-files/forms-3rdparty-files.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

forms-3rdparty-files/forms-3rdparty-files.php Passed 13 tests

Analyzing the main PHP file in "Forms: 3rd-Party File Attachments" version 0.5.2
56 characters long description:
Add file upload processing to Forms 3rdparty Integration

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin240 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP185149236
JSON1004

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity14.25
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity3.30
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes125.00%
▷ Concrete classes375.00%
▷ Final classes00.00%
Methods24
▷ Static methods729.17%
▷ Public methods2187.50%
▷ Protected methods14.17%
▷ Private methods28.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin